net.groboclown.util.states.v1
Class State

java.lang.Object
  |
  +--net.groboclown.util.states.v1.State
Direct Known Subclasses:
Transition

public class State
extends Object

The basic state object.

Version:
0.9.0 Alpha
Author:
Matt Albrecht

Field Summary
private  int category
           
private  int index
           
 
Constructor Summary
protected State(int stateCategory, int stateIndex)
          Default Constructor - protected
 
Method Summary
 boolean equals(Object o)
           
protected  int getCategory()
           
protected  int getIndex()
           
 int hashcode()
           
protected  boolean isSameCategory(State s)
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

index

private int index

category

private int category
Constructor Detail

State

protected State(int stateCategory,
                int stateIndex)
Default Constructor - protected
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashcode

public int hashcode()

isSameCategory

protected boolean isSameCategory(State s)

getIndex

protected int getIndex()

getCategory

protected int getCategory()


Written under the LGPL