gov.bnl.star.offline.scheduler
Class Queues

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.Queues

public class Queues
extends java.lang.Object

A toolkit for working with lists of queue objects.

Author:
Levente Hajdu

Nested Class Summary
 class Queues.QueueComparator
          Queue comparator class
 
Constructor Summary
Queues()
          Creates a new instance of Queues
 
Method Summary
 java.util.List getAllQueues()
           
 Queue getQueue(java.lang.String QueueID)
           
 java.util.List getQueues(java.util.List QueusIDs)
           
 boolean hasQueue(java.lang.String QueueID)
           
 boolean isInit()
           
 void OrderQueuesBySearchOrderPriority()
          Will order queues by there search order priority
 java.util.List OrderQueuesBySearchOrderPriority(java.util.List queueList)
          Will order queues by there search order priority
 java.util.List rotateSameLevelSearchOrderPriority(java.util.List Queues)
          rotate queues with the same level search order priority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queues

public Queues()
Creates a new instance of Queues

Method Detail

getAllQueues

public java.util.List getAllQueues()

isInit

public boolean isInit()

getQueue

public Queue getQueue(java.lang.String QueueID)

getQueues

public java.util.List getQueues(java.util.List QueusIDs)

hasQueue

public boolean hasQueue(java.lang.String QueueID)
Returns:
true if the queue has the same QueueID

OrderQueuesBySearchOrderPriority

public java.util.List OrderQueuesBySearchOrderPriority(java.util.List queueList)
Will order queues by there search order priority

Returns:
a list of queue objects

OrderQueuesBySearchOrderPriority

public void OrderQueuesBySearchOrderPriority()
Will order queues by there search order priority


rotateSameLevelSearchOrderPriority

public java.util.List rotateSameLevelSearchOrderPriority(java.util.List Queues)
rotate queues with the same level search order priority



Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.