Class InitContext


  • public abstract class InitContext
    extends java.lang.Object
    The InitContext is passed as a parameter to the DigitalTwinBase.init(InitContext) method of an initializing digital twin.
    • Constructor Summary

      Constructors 
      Constructor Description
      InitContext()
      Default constructor.
    • Method Summary

      Modifier and Type Method Description
      abstract java.lang.String getId()
      Get the model-unique Id identifier of the initializing digital twin instance.
      abstract java.lang.String getModel()
      Get the Model identifier of the initializing digital twin instance.
      abstract SharedData getSharedGlobalData()
      Retrieve a SharedData accessor for globally shared data.
      abstract SharedData getSharedModelData()
      Retrieve a SharedData accessor for this model's shared data.
      abstract <T extends DigitalTwinBase>
      TimerActionResult
      startTimer​(java.lang.String timerName, java.time.Duration interval, TimerType timerType, TimerHandler<T> timerHandler)
      Starts a new timer for the digital twin
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InitContext

        public InitContext()
        Default constructor.
    • Method Detail

      • getSharedModelData

        public abstract SharedData getSharedModelData()
        Retrieve a SharedData accessor for this model's shared data.
        Returns:
        a SharedData instance.
      • getSharedGlobalData

        public abstract SharedData getSharedGlobalData()
        Retrieve a SharedData accessor for globally shared data.
        Returns:
        a SharedData instance.
      • getId

        public abstract java.lang.String getId()
        Get the model-unique Id identifier of the initializing digital twin instance.
        Returns:
        the id identifier.
      • getModel

        public abstract java.lang.String getModel()
        Get the Model identifier of the initializing digital twin instance.
        Returns:
        the model identifier.