framework
Interface State

All Known Implementing Classes:
BridgeState, WaterJugState

public interface State

This interface represents the state of affairs of a problem-solving domain. Implementing classes will store the representation details of concrete problem states.


Method Summary
 boolean equals(java.lang.Object other)
          Tests for equality between this state and the argument state.
 java.lang.String toString()
          Creates a primitive, non-GUI representation of this State object.
 

Method Detail

equals

boolean equals(java.lang.Object other)
Tests for equality between this state and the argument state. Implementing classes will need to cast the argument to a specific class type.

Overrides:
equals in class java.lang.Object
Parameters:
other - the state to test against this state
Returns:
true if this state and the other are equal, false otherwise

toString

java.lang.String toString()
Creates a primitive, non-GUI representation of this State object.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this state