Interface SimulatorDatasource

All Known Subinterfaces:
SimulatorApp, SimulatorDatasourceCsvDirect, SimulatorDatasourceCsvPredefined, SimulatorDatasourceSingleDirect
All Known Implementing Classes:
AbstractCsvDatasource, SimulatorAppImpl, SimulatorDatasourceCsvDirectImpl, SimulatorDatasourceCsvPredefinedImpl, SimulatorDatasourceSingleDirectImpl

public interface SimulatorDatasource
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the available keys.
    int
    Returns the delta between two values in seconds.
    <T> T
    getValue(OpenemsType type, ChannelAddress channelAddress)
    Gets the value for the given key (channelId) in the given type.
  • Method Details

    • getKeys

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

      int getTimeDelta()
      Returns the delta between two values in seconds.
      Returns:
      the delta in seconds
    • getValue

      <T> T getValue(OpenemsType type, ChannelAddress channelAddress)
      Gets the value for the given key (channelId) in the given type.
      Type Parameters:
      T - the type
      Parameters:
      type - the expected type
      channelAddress - the Channel-Address
      Returns:
      the value, possibly null