org.yawlfoundation.yawl.resourcing.allocators
Class CheapestResource

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.CheapestResource

public class CheapestResource
extends AbstractAllocator

Performs allocation based on least cost

Author:
Michael Adams

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
CheapestResource()
           
 
Method Summary
 Participant performAllocation(Set<Participant> participants, WorkItemRecord wir)
          Selects a single participant from the list provided that has the lowest cost rate for the work item in question
 
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

CheapestResource

public CheapestResource()
Method Detail

performAllocation

public Participant performAllocation(Set<Participant> participants,
                                     WorkItemRecord wir)
Selects a single participant from the list provided that has the lowest cost rate for the work item in question

Specified by:
performAllocation in class AbstractAllocator
Parameters:
participants - a distribution set of participants
wir - the work item to allocate
Returns:
a single participant, or null if participants is null or empty


Copyright © 2004-2012 The YAWL Foundation.