Class RTCentralCoordinator

  • All Implemented Interfaces:
    Runnable

    public class RTCentralCoordinator
    extends CoordinatorParallel
    implements Runnable
    Real-time central coordinator This class implements a real-time central coordinator for DEVS models.
    • Field Detail

      • timeInterval

        protected double timeInterval
      • myThread

        protected Thread myThread
      • timeScale

        protected int timeScale
    • Constructor Detail

      • RTCentralCoordinator

        public RTCentralCoordinator​(Coupled model)
        Constructor for the real-time central coordinator.
        Parameters:
        model - Coupled model
    • Method Detail

      • 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 CoordinatorParallel
        Parameters:
        timeInterval - the time interval to simulate.
      • setTimeScale

        public void setTimeScale​(double realTimeFactor)
        Set the time scale factor.
        Parameters:
        realTimeFactor - Time scale factor
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • main

        public static void main​(String[] args)