|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Code from http://www.cse.unsw.edu.au/~aek/catmouse.
Method Summary | |
boolean |
endState()
Returns true if current state is absorbing state, false if not. |
int[] |
getDimension()
Returns the array containing the information about the number of states in each dimension ( [0] - [array.length - 2] ) and the number of possible actions ( [array.length - 1] ). |
double |
getInitValues()
Gets the initial value for the policy. |
int[] |
getNextState(int action)
Returns a new instance of the new state that results from applying the given action to the current state. |
double |
getReward()
Returns the value for the last reward received from calling the method getNextState( int action ). |
int[] |
resetState()
Resets the current state to the start position and returns that state. |
boolean |
validAction(int action)
Returns true if the given action is a valid action on the current state, false if not. |
Method Detail |
public int[] getDimension()
public int[] getNextState(int action)
public double getReward()
public boolean validAction(int action)
public boolean endState()
public int[] resetState()
public double getInitValues()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |