gr.uoa.di.madgik.execution.engine.queue
Class PlanQueue

java.lang.Object
  extended by 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

Constructor Summary
PlanQueue(ExecutionMonitor monitor)
           
 
Method Summary
 boolean isEmpty()
           
 void putLast(PlanQueueElement e)
           
 PlanQueueElement takeFirst()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanQueue

public PlanQueue(ExecutionMonitor monitor)
Method Detail

putLast

public void putLast(PlanQueueElement e)
             throws InterruptedException
Throws:
InterruptedException

takeFirst

public PlanQueueElement takeFirst()
                           throws InterruptedException
Throws:
InterruptedException

isEmpty

public boolean isEmpty()


Copyright © 2014. All Rights Reserved.