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.


Variable Index

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

Constructor Index

 o BooleanComparison(PropertyReference, PropertyReference, int)
Constructs a BooleanComparison object given two PropertyRefernces and an operator.

Method Index

 o getProperty(PropertyContainer)
Part of the PropertyReference interface.
 o rate(PropertyContainer)

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(PropertyReference p1,
                          PropertyReference p2,
                          int operator)
Constructs a BooleanComparison object given two PropertyRefernces and an operator.

Methods

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