org.yawlfoundation.yawl.cost.data
Class DriverMatrix

java.lang.Object
  extended by org.yawlfoundation.yawl.cost.data.DriverMatrix

public class DriverMatrix
extends Object

Stores a matrix of all the referenced task, resource and data entities of a set of cost drivers to the driver(s) that reference them.


Constructor Summary
DriverMatrix(Set<CostModel> models)
          Constructs a new DriverMatrix
 
Method Summary
 Map<String,XNode> getCostMap(String taskName, Set<String> resourceSet)
           
 String getCostMapAsXML(String taskName, Set<String> resourceSet)
           
 Set<CostDriver> getResourceDrivers(String resource)
           
 Set<CostDriver> getTaskDrivers(String taskName)
           
 Set<CostDriver> getVariableDrivers(String variable)
           
 boolean hasDriversForResource(String resource)
           
 boolean hasDriversForTask(String taskName)
           
 boolean hasDriversForVariable(String variable)
           
 boolean hasResourceMatch(String driverResource, String participantID)
          checks whether the resource id in a driver entity tag (which may identify a participant, role, capability, position or org group) can be resolved to the participant id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverMatrix

public DriverMatrix(Set<CostModel> models)
Constructs a new DriverMatrix

Parameters:
models - the set of models to use to create the matrix
Method Detail

hasResourceMatch

public boolean hasResourceMatch(String driverResource,
                                String participantID)
checks whether the resource id in a driver entity tag (which may identify a participant, role, capability, position or org group) can be resolved to the participant id

Parameters:
driverResource - the resource id in the driver
participantID - the participant id
Returns:
true if the participant id equals or is a member of the driverResource

hasDriversForTask

public boolean hasDriversForTask(String taskName)

hasDriversForResource

public boolean hasDriversForResource(String resource)

hasDriversForVariable

public boolean hasDriversForVariable(String variable)

getTaskDrivers

public Set<CostDriver> getTaskDrivers(String taskName)

getResourceDrivers

public Set<CostDriver> getResourceDrivers(String resource)

getVariableDrivers

public Set<CostDriver> getVariableDrivers(String variable)

getCostMap

public Map<String,XNode> getCostMap(String taskName,
                                    Set<String> resourceSet)

getCostMapAsXML

public String getCostMapAsXML(String taskName,
                              Set<String> resourceSet)


Copyright © 2004-2012 The YAWL Foundation.