Package org.jppf.node.policy
Class LogicalRule
java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.LogicalRule
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExecutionPolicy.AndRule,ExecutionPolicy.OrRule,ExecutionPolicy.XorRule,Preference
An execution policy that realizes a binary logical combination of the 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
ConstructorsConstructorDescriptionLogicalRule(ExecutionPolicy... rules) Initialize this binary logical operator with the specified operands. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExecutionPolicy[]checkRules(ExecutionPolicy... rules) Check whether the policy has valid arguments.toString(int indentLevel) Print this object to a string.Methods inherited from class org.jppf.node.policy.ExecutionPolicy
accepts, 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
-
LogicalRule
Initialize this binary logical operator with the specified operands.- Parameters:
rules- the first operand.
-
-
Method Details
-
toString
Print this object to a string.- Specified by:
toStringin classExecutionPolicy- Parameters:
indentLevel- the size of the indent to startwith.- Returns:
- an XML string representation of this object
-
checkRules
Description copied from class:ExecutionPolicyCheck whether the policy has valid arguments.- Overrides:
checkRulesin classExecutionPolicy- Parameters:
rules- the arguments to check.- Returns:
- the non-null arguments, possibly a subset of the provided arguments.
- Throws:
JPPFRuntimeException- if the arguments are not valid.
-