|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPinBallDomain.PinBallState
public class PinBallState
State class for PinBall.
| Constructor Summary | |
|---|---|
PinBallState(double xx,
double yy,
double xxdot,
double yydot,
PinBall p)
State constructor. |
|
| Method Summary | |
|---|---|
boolean |
endState()
Check whether or not this state is an end-of-episode state. |
double |
euclideanDistance(State s)
Compute the Euclidean distance between this state and another. |
double[] |
getDescriptor()
Convert to an array of doubles (each value normalized). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PinBallState(double xx,
double yy,
double xxdot,
double yydot,
PinBall p)
xx - X coordinate of the ballyy - Y coordinate of the ballxxdot - X velocity of the ballyydot - Y velocity of the ballp - Originating domain| Method Detail |
|---|
public double[] getDescriptor()
getDescriptor in interface Statepublic boolean endState()
endState in interface Statetrue if this state is an end-of-episode state, false otherwisepublic double euclideanDistance(State s)
euclideanDistance in interface States - other state
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||