net.openai.util.fsm
Class ComparableCondition

java.lang.Object
  |
  +--net.openai.util.fsm.Condition
        |
        +--net.openai.util.fsm.ComparableCondition
All Implemented Interfaces:
java.io.Serializable

public final class ComparableCondition
extends Condition

ComparableCondition class

See Also:
Serialized Form

Field Summary
static int EQ
          A shorthand for the "equal to" operation.
static int EQUAL_TO
          Indicates that this is an "equal to" operation.
static int GREATER_THAN
          Indicates that this is a "greater than" operation.
static int GREATER_THAN_OR_EQUAL_TO
          Indicates that this is a "greater than or equal to" operation.
static int GT
          A shorthand for the "greater than" operation.
static int GTE
          A shorthand for the "greater than or equal to" operation.
static int LESS_THAN
          Indicates that this is a "less than" operation.
static int LESS_THAN_OR_EQUAL_TO
          Indicates that this is a "less than or equal to" operation.
static int LT
          A shorthand for the "less than" operation.
static int LTE
          A shorthand for the "less than or equal to" operation.
static int NE
          A shorthand for the "not equal to" operation.
static int NOT_EQUAL_TO
          Indicates that this is a "not equal to" operation.
 
Constructor Summary
ComparableCondition(byte comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(byte comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(char comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(char comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(java.lang.Comparable comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(java.lang.Comparable comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(double comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(double comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(float comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(float comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(int comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(int comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(long comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(long comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(short comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(short comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, byte comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, byte comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, char comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, char comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, java.lang.Comparable comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, java.lang.Comparable comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, double comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, double comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, float comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, float comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, int comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, int comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, long comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, long comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, short comparable)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
ComparableCondition(State state, short comparable, int type)
          Constructs a new ComparableCondition with the default type of EQUALS_TO.
 
Method Summary
 int getType()
          Returns the type of ComparableCondition this is.
 boolean satisfiedBy(java.lang.Object conditional)
          Implemented method for the Condition interface.
 void setType(int type)
          Sets the type of ComparableCondition this is.
 
Methods inherited from class net.openai.util.fsm.Condition
getSourceStates, getTargetState, setTargetState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUAL_TO

public static final int EQUAL_TO
Indicates that this is an "equal to" operation. This is the default type of ComparableCondition.

See Also:
Constant Field Values

NOT_EQUAL_TO

public static final int NOT_EQUAL_TO
Indicates that this is a "not equal to" operation.

See Also:
Constant Field Values

GREATER_THAN

public static final int GREATER_THAN
Indicates that this is a "greater than" operation.

See Also:
Constant Field Values

LESS_THAN

public static final int LESS_THAN
Indicates that this is a "less than" operation.

See Also:
Constant Field Values

GREATER_THAN_OR_EQUAL_TO

public static final int GREATER_THAN_OR_EQUAL_TO
Indicates that this is a "greater than or equal to" operation.

See Also:
Constant Field Values

LESS_THAN_OR_EQUAL_TO

public static final int LESS_THAN_OR_EQUAL_TO
Indicates that this is a "less than or equal to" operation.

See Also:
Constant Field Values

EQ

public static final int EQ
A shorthand for the "equal to" operation.

See Also:
Constant Field Values

NE

public static final int NE
A shorthand for the "not equal to" operation.

See Also:
Constant Field Values

GT

public static final int GT
A shorthand for the "greater than" operation.

See Also:
Constant Field Values

LT

public static final int LT
A shorthand for the "less than" operation.

See Also:
Constant Field Values

GTE

public static final int GTE
A shorthand for the "greater than or equal to" operation.

See Also:
Constant Field Values

LTE

public static final int LTE
A shorthand for the "less than or equal to" operation.

See Also:
Constant Field Values
Constructor Detail

ComparableCondition

public ComparableCondition(java.lang.Comparable comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(java.lang.Comparable comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(byte comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(byte comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(char comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(char comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(double comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(double comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(float comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(float comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(int comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(int comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(long comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(long comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(short comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(short comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(State state,
                           java.lang.Comparable comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(State state,
                           java.lang.Comparable comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(State state,
                           byte comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(State state,
                           byte comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(State state,
                           char comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(State state,
                           char comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(State state,
                           double comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(State state,
                           double comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(State state,
                           float comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(State state,
                           float comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(State state,
                           int comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(State state,
                           int comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(State state,
                           long comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(State state,
                           long comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.
type - The type of comparison to be done.

ComparableCondition

public ComparableCondition(State state,
                           short comparable)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.

ComparableCondition

public ComparableCondition(State state,
                           short comparable,
                           int type)
Constructs a new ComparableCondition with the default type of EQUALS_TO.

Parameters:
state - The target state for this condition.
comparable - The Comparable object to compare against.
type - The type of comparison to be done.
Method Detail

setType

public final void setType(int type)
Sets the type of ComparableCondition this is.

Parameters:
type - The new type of this condition.

getType

public final int getType()
Returns the type of ComparableCondition this is.

Returns:
An int representation of the type of ComparableCondition this is.

satisfiedBy

public final boolean satisfiedBy(java.lang.Object conditional)
Implemented method for the Condition interface. Called to check if the conditional meets the criteria defined by this state. This is the only method to implement in order to used this interface.

Specified by:
satisfiedBy in class Condition
Parameters:
conditional - The object to check.
Returns:
Implementors should return true if this condition is met by the Object conditional and false otherwise.


Copyright - 2001 OpenAI Labs. All Rights Reserved.