org.yawlfoundation.yawl.resourcing
Class QueueSet

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.QueueSet

public class QueueSet
extends Object

A repository of work queues belonging to a participant

Author:
Michael Adams v0.1, 23/08/2007

Nested Class Summary
static class QueueSet.setType
           
 
Constructor Summary
QueueSet()
           
QueueSet(String pid, QueueSet.setType sType, boolean persisting)
           
 
Method Summary
 void addToQueue(int queue, WorkQueue queueToAdd)
           
 void addToQueue(WorkItemRecord wir, int queue)
           
 void addToQueue(WorkItemRecord wir, int queue, boolean log)
           
 void cleanseAllQueues(WorkItemCache cache)
           
 void cleanseQueue(WorkItemCache cache, int queue)
           
 void fromXML(org.jdom.Element element)
           
 void fromXML(String xml)
           
 Set<WorkQueue> getActiveQueues()
           
 String getID()
           
 boolean getPersisting()
           
 WorkQueue getQueue(int queue)
           
 Set<WorkItemRecord> getQueuedWorkItems(int queue)
           
 int getQueueSize(int queue)
           
 WorkQueue getWorklistedQueues()
           
 boolean hasWorkItemInAnyQueue(WorkItemRecord wir)
           
 boolean hasWorkItemInQueue(String itemID, int queue)
           
 void movetoStarted(WorkItemRecord wir)
           
 void movetoStarted(WorkItemRecord parent, WorkItemRecord child)
           
 void movetoSuspend(WorkItemRecord wir)
           
 void movetoUnsuspend(WorkItemRecord wir)
           
 void purgeAllQueues()
           
 void purgeQueue(int queue)
           
 void removeCaseFromAllQueues(String caseID)
           
 void removeCaseFromQueue(String caseID, int queue)
           
 void removeFromAllQueues(WorkItemRecord wir)
           
 void removeFromQueue(WorkItemRecord wir, int queue)
           
 void removeFromQueue(WorkQueue queueToRemove, int queue)
           
 void setID(String id)
           
 void setPersisting(boolean persisting)
           
 void setQueue(WorkQueue queue)
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueSet

public QueueSet()

QueueSet

public QueueSet(String pid,
                QueueSet.setType sType,
                boolean persisting)
Method Detail

getID

public String getID()

setID

public void setID(String id)

setPersisting

public void setPersisting(boolean persisting)

getPersisting

public boolean getPersisting()

getQueueSize

public int getQueueSize(int queue)

movetoSuspend

public void movetoSuspend(WorkItemRecord wir)

movetoStarted

public void movetoStarted(WorkItemRecord parent,
                          WorkItemRecord child)

movetoStarted

public void movetoStarted(WorkItemRecord wir)

movetoUnsuspend

public void movetoUnsuspend(WorkItemRecord wir)

getQueue

public WorkQueue getQueue(int queue)

setQueue

public void setQueue(WorkQueue queue)

addToQueue

public void addToQueue(WorkItemRecord wir,
                       int queue)

addToQueue

public void addToQueue(WorkItemRecord wir,
                       int queue,
                       boolean log)

addToQueue

public void addToQueue(int queue,
                       WorkQueue queueToAdd)

removeFromQueue

public void removeFromQueue(WorkItemRecord wir,
                            int queue)

removeFromQueue

public void removeFromQueue(WorkQueue queueToRemove,
                            int queue)

removeCaseFromQueue

public void removeCaseFromQueue(String caseID,
                                int queue)

cleanseQueue

public void cleanseQueue(WorkItemCache cache,
                         int queue)

getQueuedWorkItems

public Set<WorkItemRecord> getQueuedWorkItems(int queue)

getWorklistedQueues

public WorkQueue getWorklistedQueues()

getActiveQueues

public Set<WorkQueue> getActiveQueues()

hasWorkItemInQueue

public boolean hasWorkItemInQueue(String itemID,
                                  int queue)

hasWorkItemInAnyQueue

public boolean hasWorkItemInAnyQueue(WorkItemRecord wir)

removeFromAllQueues

public void removeFromAllQueues(WorkItemRecord wir)

removeCaseFromAllQueues

public void removeCaseFromAllQueues(String caseID)

cleanseAllQueues

public void cleanseAllQueues(WorkItemCache cache)

purgeQueue

public void purgeQueue(int queue)

purgeAllQueues

public void purgeAllQueues()

toXML

public String toXML()

fromXML

public void fromXML(String xml)

fromXML

public void fromXML(org.jdom.Element element)


Copyright © 2004-2012 The YAWL Foundation.