Class FCFSScheduler

    • Constructor Detail

      • FCFSScheduler

        public FCFSScheduler​(CompositeEntity container,
                             java.lang.String name)
                      throws IllegalActionException,
                             NameDuplicationException
        Create a new actor in the specified container with the specified name. The name must be unique within the container or an exception is thrown. The container argument must not be null, or a NullPointerException will be thrown.
        Parameters:
        container - The container.
        name - The name of this actor within the container.
        Throws:
        IllegalActionException - If this actor cannot be contained by the proposed container (see the setContainer() method).
        NameDuplicationException - If the name coincides with an entity already in the container.
    • Method Detail

      • schedule

        public Time schedule​(NamedObj actor,
                             Time currentPlatformTime,
                             Time deadline,
                             Time executionTime)
                      throws IllegalActionException
        Schedule a new actor for execution and return the next time this scheduler has to perform a reschedule.
        Specified by:
        schedule in interface ActorExecutionAspect
        Overrides:
        schedule in class AtomicExecutionAspect
        Parameters:
        actor - The actor to be scheduled.
        currentPlatformTime - The current platform time.
        deadline - The deadline - not used here.
        executionTime - The execution time of the actor.
        Returns:
        Relative time when this Scheduler has to be executed again.
        Throws:
        IllegalActionException - Thrown if actor parameters such as execution time or priority cannot be read.