Class CoordinatorParallel

  • Direct Known Subclasses:
    RTCentralCoordinator

    public class CoordinatorParallel
    extends Coordinator
    Parallel coordinator This class implements a parallel coordinator for DEVS models.
    • Constructor Detail

      • CoordinatorParallel

        public CoordinatorParallel​(SimulationClock clock,
                                   Coupled model,
                                   int numberOfThreads)
        Constructor for the parallel coordinator.
        Parameters:
        clock - Simulation clock
        model - Coupled model
        numberOfThreads - Number of threads
      • CoordinatorParallel

        public CoordinatorParallel​(Coupled model,
                                   int numberOfThreads)
        Constructor for the parallel coordinator.
        Parameters:
        model - Coupled model
        numberOfThreads - Number of threads
      • CoordinatorParallel

        public CoordinatorParallel​(Coupled model)
        Constructor for the parallel coordinator. It uses the number of available processors.
        Parameters:
        model - Coupled model
      • CoordinatorParallel

        public CoordinatorParallel​(SimulationClock clock,
                                   Coupled model)
        Constructor for the parallel coordinator. It uses the number of available processors.
        Parameters:
        clock - Simulation clock
        model - Coupled model
    • Method Detail

      • buildHierarchy

        public void buildHierarchy()
        Description copied from class: Coordinator
        Builds the hierarchy of simulators for the model.
        Overrides:
        buildHierarchy in class Coordinator
      • lambda

        public void lambda()
        Description copied from class: AbstractSimulator
        Executes the output function of the DEVS simulation.
        Overrides:
        lambda 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
      • simulate

        public void simulate​(long numIterations)
        Description copied from class: Coordinator
        This function is used to simulate the model for a given number of iterations.
        Overrides:
        simulate in class Coordinator
        Parameters:
        numIterations - the number of iterations to simulate.
      • simulate

        public void simulate​(double timeInterval)
        Description copied from class: Coordinator
        This function is used to simulate the model for a given time interval.
        Overrides:
        simulate in class Coordinator
        Parameters:
        timeInterval - the time interval to simulate.
      • main

        public static void main​(String[] args)