|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--versus.meeting.RLMeetingWorld
Implementation of meeting world for reinforcement learning environment.
Field Summary | |
(package private) int |
_action
|
(package private) int |
_actionTime
|
(package private) RLMeetingAgent |
_agent
|
(package private) int |
_currentTime
|
(package private) boolean |
_endState
|
(package private) int |
_holding
|
(package private) int |
_numMoving
|
(package private) int[] |
_state
|
(package private) int |
_timeMoving
|
(package private) static double |
INIT_VALS
|
(package private) static int |
NUM_ACTIONS
|
(package private) static int |
NUM_OBJECTS
|
(package private) static int |
NUM_STATES
|
Constructor Summary | |
RLMeetingWorld(RLMeetingAgent agent)
|
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. |
void |
setEndState(boolean end)
|
boolean |
validAction(int action)
Returns true if the given action is a valid action on the current state, false if not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int NUM_OBJECTS
static final int NUM_ACTIONS
static final double INIT_VALS
static final int NUM_STATES
RLMeetingAgent _agent
int[] _state
boolean _endState
int _action
int _actionTime
int _holding
int _numMoving
int _timeMoving
int _currentTime
Constructor Detail |
public RLMeetingWorld(RLMeetingAgent agent)
Method Detail |
public int[] getDimension()
RLWorld
getDimension
in interface RLWorld
public int[] getNextState(int action)
RLWorld
getNextState
in interface RLWorld
public double getReward()
RLWorld
getReward
in interface RLWorld
public boolean validAction(int action)
RLWorld
validAction
in interface RLWorld
public boolean endState()
RLWorld
endState
in interface RLWorld
public void setEndState(boolean end)
public int[] resetState()
RLWorld
resetState
in interface RLWorld
public double getInitValues()
RLWorld
getInitValues
in interface RLWorld
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |