Package org.jppf.node.policy
Class BetweenIE
java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.BetweenIE
- All Implemented Interfaces:
Serializable
An execution policy rule that encapsulates a test of type
a <= property_value_or_expression < b.
The test applies to numeric values only.- Author:
- Laurent Cohen
- 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
FieldsModifier and TypeFieldDescriptionprotected Expression<Double>The interval's lower bound.protected Expression<Double>The interval's upper bound.Fields inherited from class org.jppf.node.policy.ExecutionPolicy
children -
Constructor Summary
ConstructorsConstructorDescriptionDefine a comparison of type value between a and b with a included and b excluded.Define a comparison of type value between a and b with a included and b excluded.Define a comparison of type value between a and b with a included and b excluded.Define a comparison of type value between a and b with a included and b excluded. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(PropertiesCollection<String> info) Determines whether this policy accepts the specified node.protected ObjectgetLeftOperandValue(PropertiesCollection<String> properties) toString(int n) Get an xml string representation of this policy with the specified starting indentation level.Methods inherited from class org.jppf.node.policy.ExecutionPolicy
and, and, andNot, andNot, checkRules, evaluate, getChildren, getContext, getProperty, indent, negate, not, Not, or, or, orNot, orNot, setContext, setContext, tagEnd, tagStart, toString, toXML, xmlElement, xmlElement, xor, xor
-
Field Details
-
a
The interval's lower bound. -
b
The interval's upper bound.
-
-
Constructor Details
-
BetweenIE
Define a comparison of type value between a and b with a included and b excluded.- Parameters:
propertyNameOrExpression- either a literal string which represents a property name, or an expression resolving to a numeric value.a- the lower bound.b- the upper bound.
-
BetweenIE
Define a comparison of type value between a and b with a included and b excluded.- Parameters:
propertyNameOrExpression- either a literal string which represents a property name, or an expression resolving to a numeric value.a- the lower bound expression.b- the upper bound.
-
BetweenIE
Define a comparison of type value between a and b with a included and b excluded.- Parameters:
propertyNameOrExpression- either a literal string which represents a property name, or an expression resolving to a numeric value.a- the lower bound.b- the upper bound expression.
-
BetweenIE
Define a comparison of type value between a and b with a included and b excluded.- Parameters:
propertyNameOrExpression- either a literal string which represents a property name, or an expression resolving to a numeric value.a- the lower bound expression.b- the upper bound expression.
-
-
Method Details
-
accepts
Determines whether this policy accepts the specified node.- Specified by:
acceptsin classExecutionPolicy- Parameters:
info- system information for the node on which the tasks will run if accepted.- Returns:
- true if the node is accepted, false otherwise.
-
toString
Description copied from class:ExecutionPolicyGet an xml string representation of this policy with the specified starting indentation level.- Specified by:
toStringin classExecutionPolicy- Parameters:
n- the size of the indent to startwith.- Returns:
- an indented string depending on the value of
toStringIndent.
-
getLeftOperandValue
- Parameters:
properties- the proeprties collection to evaluate against.- Returns:
- the typed value of the left operand expression.
-