PinBallDomain
Interface State

All Known Implementing Classes:
PinBallState

public interface State

Generic state interface.

Author:
George Konidaris (gdk at cs dot umass dot edu)

Method Summary
 boolean endState()
          Determine whether or not the state is an end-of-episode state.
 double euclideanDistance(State s)
          Compute the Euclidean distance between this and another state.
 double[] getDescriptor()
          Return a double array state descriptor.
 

Method Detail

getDescriptor

double[] getDescriptor()
Return a double array state descriptor. All values should be between 0 and 1.

Returns:
the descriptor

endState

boolean endState()
Determine whether or not the state is an end-of-episode state.

Returns:
true if the state is an end-of-episode state, false otherwise

euclideanDistance

double euclideanDistance(State s)
Compute the Euclidean distance between this and another state.

Parameters:
s - the other state
Returns:
the distance between this state and s