Package xdevs.core.modeling
Class Coupled2Atomic
- java.lang.Object
-
- xdevs.core.modeling.Component
-
- xdevs.core.modeling.Atomic
-
- xdevs.core.modeling.Coupled2Atomic
-
public class Coupled2Atomic extends Atomic
Class that makes a coupled model behave as an atomic model. This class is used to simulate a coupled model as an atomic model.
-
-
Constructor Summary
Constructors Constructor Description Coupled2Atomic(Coupled model)
Constructor of the class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deltcon(double e)
void
deltext(double e)
External transition method of the atomic model.void
deltint()
Internal transition method of the atomic model.void
exit()
Exit function.void
initialize()
Initialize the component.void
lambda()
Output function of the atomic model.static void
main(String[] args)
double
ta()
Method to get the time until the next internal transition of the model.-
Methods inherited from class xdevs.core.modeling.Atomic
activate, getPhase, getSigma, holdIn, passivate, passivate, passivateIn, phaseIs, resume, setPhase, setSigma, showState, toXml
-
Methods inherited from class xdevs.core.modeling.Component
addInPort, addOutPort, getInPort, getInPorts, getName, getOutPort, getOutPorts, getParent, isInputEmpty, setParent, toString
-
-
-
-
Field Detail
-
coupled
protected Coupled coupled
The coupled model to simulate as an atomic model.
-
-
Constructor Detail
-
Coupled2Atomic
public Coupled2Atomic(Coupled model)
Constructor of the class.- Parameters:
model
- The coupled model to simulate as an atomic model.
-
-
Method Detail
-
initialize
public void initialize()
Description copied from class:Component
Initialize the component. The initialize method is called when the simulation starts. The initialize method is used to initialize the component before the simulation starts.- Specified by:
initialize
in classComponent
-
exit
public void exit()
Description copied from class:Component
Exit function. The exit function is called when the simulation ends. The exit function is used to release resources used by the component.
-
deltint
public void deltint()
Description copied from class:Atomic
Internal transition method of the atomic model. This method is called when the time until the next internal transition of the model is zero.
-
deltext
public void deltext(double e)
Description copied from class:Atomic
External transition method of the atomic model. This method is called when the model receives an input from another model.
-
lambda
public void lambda()
Description copied from class:Atomic
Output function of the atomic model. This method is called when the model has an output to send to another model.
-
ta
public double ta()
Description copied from class:Atomic
Method to get the time until the next internal transition of the model.
-
main
public static void main(String[] args)
-
-