org.globus.cog.karajan.scheduler
Interface ResourceConstraintChecker


public interface ResourceConstraintChecker


Method Summary
 boolean checkConstraints(BoundContact resource, TaskConstraints tc)
          Checks if a resource meets the given task constraints
 List checkConstraints(List resources, TaskConstraints tc)
          Identifies the resouces in a list meeting the given task constraints
 

Method Detail

checkConstraints

boolean checkConstraints(BoundContact resource,
                         TaskConstraints tc)
Checks if a resource meets the given task constraints

Parameters:
resource - the resource to be checked
tc - the constraints to check the resource against
Returns:
true if the resouce meets the constraints; false otherwise

checkConstraints

List checkConstraints(List resources,
                      TaskConstraints tc)
Identifies the resouces in a list meeting the given task constraints

Parameters:
resources - a list of BoundContact objects
tc - the task constraints
Returns:
the subset of contacts meeting the given constraints
See Also:
BoundContact