gr.uoa.di.madgik.execution.engine.queue
Class PlanQueue
java.lang.Object
gr.uoa.di.madgik.execution.engine.queue.PlanQueue
public class PlanQueue
- extends Object
A queue used to store plans before they are executed. Plans are evaluated for
requested resources and if not qualified to start executing they miss their
turn and following plans are evaluated. Every queue element has a threshold
of maximum percentage of utilization and the number of allowed times it can
miss turn.
- Author:
- john.gerbesiotis - DI NKUA
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlanQueue
public PlanQueue(ExecutionMonitor monitor)
putLast
public void putLast(PlanQueueElement e)
throws InterruptedException
- Throws:
InterruptedException
takeFirst
public PlanQueueElement takeFirst()
throws InterruptedException
- Throws:
InterruptedException
isEmpty
public boolean isEmpty()
Copyright © 2013. All Rights Reserved.