Package xdevs.core.simulation.dynamic
Class CoordinatorDynamic
- java.lang.Object
-
- xdevs.core.simulation.AbstractSimulator
-
- xdevs.core.simulation.Coordinator
-
- xdevs.core.simulation.dynamic.CoordinatorDynamic
-
public class CoordinatorDynamic extends Coordinator
Dynamic coordinator This class implements a dynamic coordinator for variable structure DEVS models.
-
-
Field Summary
-
Fields inherited from class xdevs.core.simulation.Coordinator
model, simulators
-
Fields inherited from class xdevs.core.simulation.AbstractSimulator
clock, tL, tN
-
-
Constructor Summary
Constructors Constructor Description CoordinatorDynamic(Coupled model)Constructor for the dynamic coordinator.CoordinatorDynamic(SimulationClock clock, Coupled model)Constructor for the dynamic coordinator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildHierarchy()Builds the hierarchy of simulators for the model.voiddeltfcn()Executes one of the transition functions of the DEVS simulation, depending on the current state of the model and whether there are new events or not.static voidmain(String[] args)voidstructuralTransition()Perform a structural transition in the model.-
Methods inherited from class xdevs.core.simulation.Coordinator
clear, exit, getModel, getSimulators, initialize, lambda, propagateInput, propagateOutput, simInject, simInject, simInject, simInject, simulate, simulate, ta
-
-
-
-
Constructor Detail
-
CoordinatorDynamic
public CoordinatorDynamic(SimulationClock clock, Coupled model)
Constructor for the dynamic coordinator.- Parameters:
clock- Simulation clockmodel- Coupled model
-
CoordinatorDynamic
public CoordinatorDynamic(Coupled model)
Constructor for the dynamic coordinator.- Parameters:
model- Coupled model
-
-
Method Detail
-
buildHierarchy
protected void buildHierarchy()
Description copied from class:CoordinatorBuilds the hierarchy of simulators for the model.- Overrides:
buildHierarchyin classCoordinator
-
deltfcn
public void deltfcn()
Description copied from class:AbstractSimulatorExecutes one of the transition functions of the DEVS simulation, depending on the current state of the model and whether there are new events or not.- Overrides:
deltfcnin classCoordinator
-
structuralTransition
public void structuralTransition()
Perform a structural transition in the model. This method checks if the model has changed its structure, and updates the simulators accordingly.
-
main
public static void main(String[] args)
-
-