Klasse TerminationInPort

Bekannte direkte Unterklassen:
SynchronizationInPort

public class TerminationInPort extends SimpleTerminationInPort
TerminationInPorts are the InPorts for OnConditionStartableSystems. New 2.0: The incoming signal (by step) terminates the simulation chain
  • Konstruktordetails

    • TerminationInPort

      public TerminationInPort(int port, OnConditionStartableSystemImpl owner)
      TerminationInPort can consume up to 2 signals. This allows to terminate (the simulation chain) immediately when the first signal is receipt and not only when it is consumed by the owner system of this TerminationInPort.
      Parameter:
      owner -
      id -
  • Methodendetails

    • setQueueCapacity

      public void setQueueCapacity(int blockingQueueCapacity, int inOutQueueCapacity)
    • initSystemContainer

      public void initSystemContainer(SystemContainer sysContainer)
      Beschreibung aus Klasse kopiert: InPort
      Runs through the simulation chain to initialize the SystemContainer and all TerminationInPorts.
      Setzt außer Kraft:
      initSystemContainer in Klasse InPort
    • getAnalogSignalValue

      public double getAnalogSignalValue()
      Convenient method for analog systems for getSignal().
      Gibt zurück:
      analog Signal value
    • getAnalogSignal

      public AnalogSignal getAnalogSignal()
    • step

      public void step(Signal sig)
      Terminates simulation chain. Called by thread of previous SystemContainer. Does not call step() of the owner system.
      Setzt außer Kraft:
      step in Klasse SimpleTerminationInPort
    • getSignal

      public Signal getSignal()
      The owner system, i.e. StartableSystem of the subsequent SystemContainer, fetches the signal (must be available beforehand). The simulation step of the preceding SystemContainer is terminated.
    • resetSimulation

      public void resetSimulation()