All Packages Class Hierarchy This Package Previous Next Index
Class improv.actor.behavior.BooleanComparison
java.lang.Object
|
+----improv.event.ImprovObservable
|
+----improv.actor.behavior.ImprovProperty
|
+----improv.actor.behavior.BooleanComparison
- public final class BooleanComparison
- extends ImprovProperty
- implements PropertyReference
Boolean comparison is used to in a DecisionTrigger to perform a boolean comparison between two properties.
-
EQUALS
-
-
GREATER_EQUALS
-
-
GREATER_THAN
-
-
LESS_EQUALS
-
-
LESS_THAN
-
-
NOT_EQUALS
-
-
BooleanComparison(PropertyReference, PropertyReference, int)
- Constructs a BooleanComparison object given two PropertyRefernces and an operator.
-
getProperty(PropertyContainer)
- Part of the PropertyReference interface.
-
rate(PropertyContainer)
-
EQUALS
public static final int EQUALS
NOT_EQUALS
public static final int NOT_EQUALS
LESS_THAN
public static final int LESS_THAN
GREATER_THAN
public static final int GREATER_THAN
LESS_EQUALS
public static final int LESS_EQUALS
GREATER_EQUALS
public static final int GREATER_EQUALS
BooleanComparison
public BooleanComparison(PropertyReference p1,
PropertyReference p2,
int operator)
- Constructs a BooleanComparison object given two PropertyRefernces and an operator.
getProperty
public ImprovProperty getProperty(PropertyContainer p)
- Part of the PropertyReference interface.
Constructs an SFFloatProperty whose value is a rating of the PropertyContainer based on this comparison,
and returns it as an ImprovProperty.
- Overrides:
- getProperty in class ImprovProperty
rate
public double rate(PropertyContainer p)
- Returns:
- the rating of the PropertyContainer based on this comparison.
All Packages Class Hierarchy This Package Previous Next Index