All Packages Class Hierarchy This Package Previous Next Index
Class improv.actor.behavior.BooleanComparison
java.lang.Object
|
+----improv.actor.behavior.BooleanComparison
- public final class BooleanComparison
- extends Object
- implements ChannelReference
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(ChannelReference, ChannelReference, int)
- Constructs a BooleanComparison object given two ChannelRefernces and an operator.
-
getChannel(ChannelContainer)
- Part of the ChannelReference interface.
-
rate(ChannelContainer)
-
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(ChannelReference p1,
ChannelReference p2,
int operator)
- Constructs a BooleanComparison object given two ChannelRefernces and an operator.
getChannel
public Channel getChannel(ChannelContainer p)
- Part of the ChannelReference interface.
Constructs an SFFloatChannel whose value is a rating of the ChannelContainer based on this comparison,
and returns it as an Channel.
rate
public double rate(ChannelContainer p)
- Returns:
- the rating of the ChannelContainer based on this comparison.
All Packages Class Hierarchy This Package Previous Next Index