Class OutputPort<T extends Number & Comparable<T>,TYPE>
java.lang.Object
nl.tudelft.simulation.dsol.formalisms.devs.esdevs.OutputPort<T,TYPE>
- Type Parameters:
T
- the time typeTYPE
- The type of messages the port produces.
- All Implemented Interfaces:
OutputPortInterface<T,
TYPE>
public class OutputPort<T extends Number & Comparable<T>,TYPE>
extends Object
implements OutputPortInterface<T,TYPE>
OutputPort class. The output port transfers the event (message) to the next receiver. In case there is no next receiver (e.g.
in case of the model being the highest coupled model in the simulation, the event is currently not transferred.
Copyright (c) 2009-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Mamadou Seck
, Alexander Verbraeck
-
Constructor Summary
ConstructorDescriptionOutputPort
(AtomicModel<T> atomicModel) Constructor for the output port where the model is an atomic model.OutputPort
(CoupledModel<T> coupledModel) Constructor for the output port where the model is a coupled model. -
Method Summary
-
Constructor Details
-
OutputPort
Constructor for the output port where the model is a coupled model.- Parameters:
coupledModel
- CoupledModel<T>; the coupled model.
-
OutputPort
Constructor for the output port where the model is an atomic model.- Parameters:
atomicModel
- AtomicModel<T>; the atomic model.
-
-
Method Details
-
send
Send a message through the output port.- Specified by:
send
in interfaceOutputPortInterface<T extends Number & Comparable<T>,
TYPE> - Parameters:
value
- TYPE; the value to transfer.
-
getModel
- Specified by:
getModel
in interfaceOutputPortInterface<T extends Number & Comparable<T>,
TYPE> - Returns:
- the model to which the port belongs.
-