Package xdevs.core.modeling
Class Coupling<E>
- java.lang.Object
-
- xdevs.core.modeling.Coupling<E>
-
public class Coupling<E> extends Object
Class for the couplings between components in the DEVS formalism. A coupling is a connection between two ports of two different components. The coupling is used to propagate the values from the output port to the input port.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Port<E>
getPortFrom()
Returns the source port of the coupling.Port<E>
getPortTo()
Returns the destination port of the coupling.void
propagateValues()
Propagates the values from the source port to the destination port.String
toString()
Returns the string representation of the coupling.
-
-
-
Method Detail
-
toString
public String toString()
Returns the string representation of the coupling.
-
propagateValues
public void propagateValues()
Propagates the values from the source port to the destination port.
-
getPortFrom
public Port<E> getPortFrom()
Returns the source port of the coupling.- Returns:
- The source port of the coupling.
-
-