Package io.openems.edge.simulator
Class DataContainer
java.lang.Object
io.openems.edge.simulator.DataContainer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a Record to the end.Float[]
Gets the current record.getKeys()
Gets the available keys.Gets the value for the key from the current record.void
Switch to the next row of values.void
rewind()
Rewinds the data to start again at the first record.void
Sets the keys.
-
Constructor Details
-
DataContainer
public DataContainer()
-
-
Method Details
-
getKeys
Gets the available keys.- Returns:
- the Channel-Id
-
setKeys
Sets the keys.- Parameters:
keys
- the Channel-Id
-
addRecord
Adds a Record to the end.- Parameters:
record
- the record values
-
getCurrentRecord
Gets the current record.- Returns:
- the current record
-
getValue
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.
-