Class ProcessQueueImpl
java.lang.Object
edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.queueing.basicqueues.ProcessQueueImpl
- All Implemented Interfaces:
IProcessQueue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IActiveProcess process, boolean inFront) void
addFirst
(IActiveProcess process) void
addLast
(IActiveProcess process) boolean
contains
(IActiveProcess process) getBestRunnableQueue
(IResourceInstance instance) getNextRunnableProcess
(IResourceInstance instance) getStarvingProcesses
(double starvationLimit) double
getWaitingTime
(IActiveProcess process) void
identifyMovableProcesses
(IResourceInstance targetInstance, boolean prio_increasing, boolean queue_ascending, int processes_needed, List<IActiveProcess> process_list) boolean
isEmpty()
peek()
poll()
boolean
processStarving
(double threshold) boolean
remove
(IActiveProcess process) void
setWaitingTime
(IActiveProcess process, double waiting) int
size()
-
Constructor Details
-
ProcessQueueImpl
public ProcessQueueImpl(de.uka.ipd.sdq.scheduler.SchedulerModel model)
-
-
Method Details
-
addLast
- Specified by:
addLast
in interfaceIProcessQueue
-
addFirst
- Specified by:
addFirst
in interfaceIProcessQueue
-
add
- Specified by:
add
in interfaceIProcessQueue
-
peek
-
poll
-
size
public int size()- Specified by:
size
in interfaceIProcessQueue
-
remove
- Specified by:
remove
in interfaceIProcessQueue
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceIProcessQueue
-
ascending
- Specified by:
ascending
in interfaceIProcessQueue
-
descending
- Specified by:
descending
in interfaceIProcessQueue
-
contains
- Specified by:
contains
in interfaceIProcessQueue
-
getBestRunnableQueue
- Specified by:
getBestRunnableQueue
in interfaceIProcessQueue
-
getNextRunnableProcess
- Specified by:
getNextRunnableProcess
in interfaceIProcessQueue
-
getNextRunnableProcess
- Specified by:
getNextRunnableProcess
in interfaceIProcessQueue
-
identifyMovableProcesses
public void identifyMovableProcesses(IResourceInstance targetInstance, boolean prio_increasing, boolean queue_ascending, int processes_needed, List<IActiveProcess> process_list) - Specified by:
identifyMovableProcesses
in interfaceIProcessQueue
-
createNewInstance
- Specified by:
createNewInstance
in interfaceIProcessQueue
-
processStarving
public boolean processStarving(double threshold) - Specified by:
processStarving
in interfaceIProcessQueue
-
setWaitingTime
- Specified by:
setWaitingTime
in interfaceIProcessQueue
-
getWaitingTime
- Specified by:
getWaitingTime
in interfaceIProcessQueue
-
getStarvingProcesses
- Specified by:
getStarvingProcesses
in interfaceIProcessQueue
-