Package org.jppf.node.policy
Class ExecutionPolicy.AndRule
java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.LogicalRule
org.jppf.node.policy.ExecutionPolicy.AndRule
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ExecutionPolicy
An execution policy that realizes a logical "AND" combination of multiple policies specified as operands.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jppf.node.policy.ExecutionPolicy
ExecutionPolicy.AndRule, ExecutionPolicy.NotRule, ExecutionPolicy.OrRule, ExecutionPolicy.XorRule -
Field Summary
Fields inherited from class org.jppf.node.policy.ExecutionPolicy
children -
Constructor Summary
ConstructorsConstructorDescriptionAndRule(ExecutionPolicy... rules) Initialize this AND operator with the specified operands. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(PropertiesCollection<String> info) Determine if a node is acceptable for this policy.toString(int n) Print this object to a string.Methods inherited from class org.jppf.node.policy.LogicalRule
checkRulesMethods inherited from class org.jppf.node.policy.ExecutionPolicy
and, and, andNot, andNot, evaluate, getChildren, getContext, getProperty, indent, negate, not, Not, or, or, orNot, orNot, setContext, setContext, tagEnd, tagStart, toString, toXML, xmlElement, xmlElement, xor, xor
-
Constructor Details
-
AndRule
Initialize this AND operator with the specified operands.- Parameters:
rules- the rules to combine.
-
-
Method Details
-
accepts
Determine if a node is acceptable for this policy.- Specified by:
acceptsin classExecutionPolicy- Parameters:
info- system information for the node on which the tasks will run if accepted.- Returns:
- true if and only if the 2 operands' accepts() method return true or an empty or null operand list was specified.
-
toString
Description copied from class:LogicalRulePrint this object to a string.- Overrides:
toStringin classLogicalRule- Parameters:
n- the size of the indent to startwith.- Returns:
- an XML string representation of this object
-