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.


Variable Index

 o EQUALS
 o GREATER_EQUALS
 o GREATER_THAN
 o LESS_EQUALS
 o LESS_THAN
 o NOT_EQUALS

Constructor Index

 o BooleanComparison(ChannelReference, ChannelReference, int)
Constructs a BooleanComparison object given two ChannelRefernces and an operator.

Method Index

 o getChannel(ChannelContainer)
Part of the ChannelReference interface.
 o rate(ChannelContainer)

Variables

 o EQUALS
 public static final int EQUALS
 o NOT_EQUALS
 public static final int NOT_EQUALS
 o LESS_THAN
 public static final int LESS_THAN
 o GREATER_THAN
 public static final int GREATER_THAN
 o LESS_EQUALS
 public static final int LESS_EQUALS
 o GREATER_EQUALS
 public static final int GREATER_EQUALS

Constructors

 o BooleanComparison
 public BooleanComparison(ChannelReference p1,
                          ChannelReference p2,
                          int operator)
Constructs a BooleanComparison object given two ChannelRefernces and an operator.

Methods

 o 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.

 o 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