|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs4099.StateStack
public class StateStack
This class stores a LinkedList of states with references to their parents. New states are added to and removed from the head of the linked list.
State
Constructor Summary | |
---|---|
StateStack()
Creates a new StateStack |
Method Summary | |
---|---|
void |
add(State state)
Adds a state to the stack |
State |
get()
Removes the first state from the stack |
boolean |
isEmpty()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateStack()
Method Detail |
---|
public void add(State state)
public State get()
public boolean isEmpty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |