public class RandomChoice extends AbstractAllocator
AbstractAllocator.EventPair
_canonicalName, _description, _displayName, _name, _params
Constructor and Description |
---|
RandomChoice() |
Modifier and Type | Method and Description |
---|---|
Participant |
performAllocation(java.util.Set<Participant> participants,
WorkItemRecord wir)
randomly selects a single participant from the list provided
|
getAvgDurations, getAvgDurations, getCost, getCostMap, getLoggedEvents, participantSetToMap, toXML
addKey, addParam, addParams, compareTo, equals, evaluate, getCanonicalName, getClassName, getDescription, getDisplayName, getInformation, getKeys, getName, getParamKeys, getParams, getParamValue, hashCode, intersection, reconstitute, setCanonicalName, setDescription, setDisplayName, setKeyValue, setName, setParams, toString, union, unmarshalParams
public Participant performAllocation(java.util.Set<Participant> participants, WorkItemRecord wir)
performAllocation
in class AbstractAllocator
participants
- a distribution set of participantswir
- the work item to allocateCopyright © 2004-2014 The YAWL Foundation.