A unique number that is used to identify states.
m
private Matrix m
The matrix representation of the state.
edgeA
private Vector edgeA
A list of possible states that can be reached from the current state by performing task A.
edgeB
private Vector edgeB
A list of possible states that can be reached from the current state by performing task B.
task
private char task
The task A or B performed
to reached the "next state"
Creates a new State object
with the specified id and Matrix object.
Prints the values of the State variables onto the Java console.
print
public void print(TextPanel panel)
Prints the values of the State variables onto the TextPanel object.
printEdges
public void printEdges()
Prints all the Edges that are connected to the current State object onto the Java console.
printEdges
public void printEdges(TextPanel panel)
Prints all the Edges that are connected to the current State object onto a TextPanel object..