Klasse TerminationInPort
java.lang.Object
de.labAlive.core.port.Port
de.labAlive.core.port.InPort
de.labAlive.core.port.SimpleTerminationInPort
de.labAlive.core.port.terminationInPort.TerminationInPort
- Bekannte direkte Unterklassen:
SynchronizationInPort
TerminationInPorts are the InPorts for OnConditionStartableSystems. New 2.0: The incoming signal (by step) terminates
the simulation chain
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungTerminationInPort(int port, OnConditionStartableSystemImpl owner) TerminationInPort can consume up to 2 signals. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungdoubleConvenient method for analog systems for getSignal().The owner system, i.e.voidinitSystemContainer(SystemContainer sysContainer) Runs through the simulation chain to initialize the SystemContainer and all TerminationInPorts.voidvoidsetQueueCapacity(int blockingQueueCapacity, int inOutQueueCapacity) voidTerminates simulation chain.Von Klasse geerbte Methoden InPort
forwardSignalingVon Klasse geerbte Methoden Port
checkConnection, connectWire, getOwner, getPort, getWire, isConnected
-
Konstruktordetails
-
TerminationInPort
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
Beschreibung aus Klasse kopiert:InPortRuns through the simulation chain to initialize the SystemContainer and all TerminationInPorts.- Setzt außer Kraft:
initSystemContainerin KlasseInPort
-
getAnalogSignalValue
public double getAnalogSignalValue()Convenient method for analog systems for getSignal().- Gibt zurück:
- analog Signal value
-
getAnalogSignal
-
step
Terminates simulation chain. Called by thread of previous SystemContainer. Does not call step() of the owner system.- Setzt außer Kraft:
stepin KlasseSimpleTerminationInPort
-
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()
-