org.yawlfoundation.yawl.resourcing.allocators
Class GenericAllocator

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.AbstractSelector
      extended by org.yawlfoundation.yawl.resourcing.allocators.AbstractAllocator
          extended by org.yawlfoundation.yawl.resourcing.allocators.GenericAllocator

public class GenericAllocator
extends AbstractAllocator

A base or generic allocator class which allows external entities such as the Editor the ability to instantiate it as a medium for specification XML generation Create Date: 23/08/2007. Last Date: 09/11/2007

Version:
2.0
Author:
Michael Adams (BPM Group, QUT Australia)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.yawlfoundation.yawl.resourcing.allocators.AbstractAllocator
AbstractAllocator.EventPair
 
Field Summary
 
Fields inherited from class org.yawlfoundation.yawl.resourcing.AbstractSelector
_canonicalName, _description, _displayName, _name, _params
 
Constructor Summary
GenericAllocator()
           
GenericAllocator(String name)
           
 
Method Summary
 Participant performAllocation(Set<Participant> resources, WorkItemRecord wir)
          Performs an allocation using some strategy
 
Methods inherited from class org.yawlfoundation.yawl.resourcing.allocators.AbstractAllocator
getAvgDurations, getAvgDurations, getCost, getCostMap, getLoggedEvents, participantSetToMap, toXML, unmarshal
 
Methods inherited from class org.yawlfoundation.yawl.resourcing.AbstractSelector
addKey, addParam, addParams, getCanonicalName, getClassName, getDescription, getDisplayName, getInformation, getKeys, getName, getParamKeys, getParams, getParamValue, reconstitute, setCanonicalName, setDescription, setDisplayName, setKeyValue, setName, setParams, toString, unmarshalParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericAllocator

public GenericAllocator(String name)

GenericAllocator

public GenericAllocator()
Method Detail

performAllocation

public Participant performAllocation(Set<Participant> resources,
                                     WorkItemRecord wir)
Description copied from class: AbstractAllocator
Performs an allocation using some strategy

Specified by:
performAllocation in class AbstractAllocator
Parameters:
resources - the distribution set of participants
wir - the work item to allocate
Returns:
the Participant chosen by the allocation strategy


Copyright © 2004-2012 The YAWL Foundation.