public class ShortestQueue extends AbstractAllocator
AbstractAllocator.EventPair
_canonicalName, _description, _displayName, _name, _params
Constructor and Description |
---|
ShortestQueue() |
Modifier and Type | Method and Description |
---|---|
java.util.Set |
getParamKeys() |
Participant |
performAllocation(java.util.Set<Participant> resSet,
WorkItemRecord wir)
selects the Participant with the least number of workitems in the 'allocated'
workqueue, or the first participant with an empty queue
|
getAvgDurations, getAvgDurations, getCost, getCostMap, getLoggedEvents, participantSetToMap, toXML
addKey, addParam, addParams, compareTo, equals, evaluate, getCanonicalName, getClassName, getDescription, getDisplayName, getInformation, getKeys, getName, getParams, getParamValue, hashCode, intersection, reconstitute, setCanonicalName, setDescription, setDisplayName, setKeyValue, setName, setParams, toString, union, unmarshalParams
public Participant performAllocation(java.util.Set<Participant> resSet, WorkItemRecord wir)
performAllocation
in class AbstractAllocator
resSet
- the set of Participants to comparewir
- the work item to allocatepublic java.util.Set getParamKeys()
getParamKeys
in class AbstractSelector
Copyright © 2004-2014 The YAWL Foundation.