Klasse OnConditionStartableSystemImpl

Alle implementierten Schnittstellen:
StartableSystem, SystemI, MouseListener, EventListener

public class OnConditionStartableSystemImpl extends SystemImpl implements StartableSystem
Base class for systems with more than one inputs (and any number of outputs). These systems are at the beginning of a separate simulation chain, i.e. are the StartableSystem of a separate SystemContainer. OnConditionStartableSystem implements the required simulation administration (interaction with SystemContainer and TerminationInPorts, handles preconditions).
  • Konstruktordetails

    • OnConditionStartableSystemImpl

      public OnConditionStartableSystemImpl()
  • Methodendetails

    • getFacade

      public OnConditionStartableSystem getFacade()
      Beschreibung aus Klasse kopiert: SystemImpl
      Getter and Setter:
      Setzt außer Kraft:
      getFacade in Klasse SystemImpl
    • startinitSystemContainer

      public void startinitSystemContainer(SystemContainer presysContainer)
      TerminationInPort acknowledges end of previous SystemContainer. Orders a new SystemContainer with this as StartSystem.
    • startStep

      public void startStep()
      Performs first simulation step in SystemContainer. Calls getSignal() implemented by subclass.
      Angegeben von:
      startStep in Schnittstelle StartableSystem
    • getSignal

      public Signal getSignal()
      Calculates the output signal of the StartableSystem. To be implemented in the subclass. It is assured that all input signals are available (in TerminationInPorts).
    • step

      public void step(Signal sig)
      Dummy implementation of required step method. Will never be called as the TerminationInPorts prevent that. startStep() implements the simulation functionality.
      Setzt außer Kraft:
      step in Klasse SystemImpl
    • getInputs

      public int getInputs()
      Returns number of inputs.
    • forwardSignaling

      public void forwardSignaling(SignalingMessage sigMess)
      Signaling:
      Angegeben von:
      forwardSignaling in Schnittstelle SystemI
      Setzt außer Kraft:
      forwardSignaling in Klasse SystemImpl
    • backwardSignaling

      public void backwardSignaling(SignalingMessage sigMess)
      Beschreibung aus Klasse kopiert: SystemImpl
      Runs (backward) through the simulation chain and communicates a Signaling message (SigMess). Can be used for all meta communication beyond simulation signal flow. System is allowed to change sigMess.
      Angegeben von:
      backwardSignaling in Schnittstelle SystemI
      Setzt außer Kraft:
      backwardSignaling in Klasse SystemImpl
    • resetSimulation

      public void resetSimulation()
      Setzt außer Kraft:
      resetSimulation in Klasse SignalingComponent
    • coldStart

      public void coldStart()
    • setColdStartSignal

      public void setColdStartSignal(Signal coldStartSignal)