Class AbstractScheduler

    • Method Detail

      • fromReadyToRunningOn

        protected void fromReadyToRunningOn​(IActiveProcess process,
                                            IResourceInstance instance)
        Marks the given process as executing on the specified resource instance.
        Parameters:
        process -
        instance -
      • fromRunningToWaiting

        public void fromRunningToWaiting​(WaitingProcess waiting_process,
                                         Deque<de.uka.ipd.sdq.scheduler.processes.IWaitingProcess> waiting_queue,
                                         boolean in_front)
        Description copied from interface: IScheduler
        Notifies the scheduler, that a running process has to change its state to waiting. Takes care of the complete state change, including the insertion of the process into the waiting queue.
        Specified by:
        fromRunningToWaiting in interface IScheduler
        Parameters:
        waiting_process - Wrapper for the waiting process. Includes additional information about the waiting state.
        waiting_queue - The queue where the process has to wait.
        in_front - If true, the process is inserted at the front of the queue, otherwise it is inserted at the end.
      • fromWaitingToReady

        public void fromWaitingToReady​(WaitingProcess waiting_process,
                                       Deque<de.uka.ipd.sdq.scheduler.processes.IWaitingProcess> waitingQueue,
                                       IResourceInstance current)
        Description copied from interface: IScheduler
        Notifies the scheduler, that a process finished its waiting period and becomes ready for execution. It takes care of the complete state change including the removal of the process from its waiting queue.
        Specified by:
        fromWaitingToReady in interface IScheduler
        Parameters:
        waiting_process - Wrapper for the waiting process.
        waitingQueue - Queue where the process is waiting.