Class DigitalTwinBase

java.lang.Object
com.scaleoutsoftware.digitaltwin.core.DigitalTwinBase

public abstract class DigitalTwinBase extends Object
A real-time digital twin of a data source. The implementation of the real-time DigitalTwin should have a parameterless constructor for basic initialization.
  • Field Details

  • Constructor Details

    • DigitalTwinBase

      public DigitalTwinBase()
  • Method Details

    • getNextSimulationTimeMs

      public long getNextSimulationTimeMs()
      Retrieve the next simulation time in milliseconds.
      Returns:
      the next simulation time in milliseconds.
    • setNextSimulationTime

      public void setNextSimulationTime(long nextSimulationTime)
      Set the next simulation time in milliseconds.
      Parameters:
      nextSimulationTime - set the next simulation time.
    • getId

      public String getId()
      The identifier of this DigitalTwin.
      Returns:
      the identifier of this digital twin
    • getModel

      public String getModel()
      The model for this DigitalTwin.
      Returns:
      the model for this DigitalTwin
    • init

      public void init(InitContext context) throws IllegalStateException
      Initialization method to set the identifier and model for a DigitalTwin instance. Optionally use the InitContext to start a timer.
      Parameters:
      context - the initialization context.
      Throws:
      IllegalStateException - if init is called after initialization.