org.yawlfoundation.yawl.resourcing.allocators
Class FastestToStart

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

public class FastestToStart
extends AbstractAllocator

Performs allocation based on the least average cost to allocate a work item

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
FastestToStart()
           
 
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

FastestToStart

public FastestToStart()
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.