org.globus.cog.karajan.scheduler
Interface ResourceConstraintChecker
public interface ResourceConstraintChecker
checkConstraints
boolean checkConstraints(BoundContact resource,
TaskConstraints tc)
- Checks if a resource meets the given task constraints
- Parameters:
resource
- the resource to be checkedtc
- 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 objectstc
- the task constraints
- Returns:
- the subset of contacts meeting the given constraints
- See Also:
BoundContact