|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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 domainMethod Detail |
---|
public double[] getDescriptor()
getDescriptor
in interface State
public boolean endState()
endState
in interface State
true
if this state is an end-of-episode state, false
otherwisepublic double euclideanDistance(State s)
euclideanDistance
in interface State
s
- other state
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |