Class DataContainer

java.lang.Object
io.openems.edge.simulator.DataContainer

public class DataContainer extends Object
  • Constructor Details

    • DataContainer

      public DataContainer()
  • Method Details

    • getKeys

      public Set<String> getKeys()
      Gets the available keys.
      Returns:
      the Channel-Id
    • setKeys

      public void setKeys(String[] keys)
      Sets the keys.
      Parameters:
      keys - the Channel-Id
    • addRecord

      public void addRecord(Float[] record)
      Adds a Record to the end.
      Parameters:
      record - the record values
    • getCurrentRecord

      public Float[] getCurrentRecord()
      Gets the current record.
      Returns:
      the current record
    • getValue

      public Optional<Float> getValue(String key)
      Gets the value for the key from the current record. If no keys exist, get the first value of the record.
      Parameters:
      key - the Channel-Id
      Returns:
      the record value
    • nextRecord

      public void nextRecord()
      Switch to the next row of values.
    • rewind

      public void rewind()
      Rewinds the data to start again at the first record.