Class CoordinatorDynamic


  • public class CoordinatorDynamic
    extends Coordinator
    Dynamic coordinator This class implements a dynamic coordinator for variable structure DEVS models.
    • Constructor Detail

      • CoordinatorDynamic

        public CoordinatorDynamic​(SimulationClock clock,
                                  Coupled model)
        Constructor for the dynamic coordinator.
        Parameters:
        clock - Simulation clock
        model - 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: Coordinator
        Builds the hierarchy of simulators for the model.
        Overrides:
        buildHierarchy in class Coordinator
      • deltfcn

        public void deltfcn()
        Description copied from class: AbstractSimulator
        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.
        Overrides:
        deltfcn in class Coordinator
      • 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)