org.rlcommunity.rlglue.codec
Class LocalGlue
java.lang.Object
org.rlcommunity.rlglue.codec.LocalGlue
- All Implemented Interfaces:
- RLGlueInterface
public class LocalGlue
- extends java.lang.Object
- implements RLGlueInterface
This is a local implementation of RL-Glue. It should be identical in behavior
to the RL-Glue code in the C/C++ RLGlueCore project.
- Since:
- 2.03
- Author:
- btanner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalGlue
public LocalGlue(EnvironmentInterface E,
AgentInterface A)
RL_env_message
public java.lang.String RL_env_message(java.lang.String theString)
- Specified by:
RL_env_message
in interface RLGlueInterface
RL_agent_message
public java.lang.String RL_agent_message(java.lang.String theString)
- Specified by:
RL_agent_message
in interface RLGlueInterface
RL_init
public java.lang.String RL_init()
- Specified by:
RL_init
in interface RLGlueInterface
RL_start
public Observation_action RL_start()
- Specified by:
RL_start
in interface RLGlueInterface
RL_env_start
public Observation RL_env_start()
- Specified by:
RL_env_start
in interface RLGlueInterface
RL_agent_start
public Action RL_agent_start(Observation theObservation)
- Specified by:
RL_agent_start
in interface RLGlueInterface
RL_env_step
public Reward_observation_terminal RL_env_step(Action theAction)
- Specified by:
RL_env_step
in interface RLGlueInterface
RL_agent_step
public Action RL_agent_step(double theReward,
Observation theObservation)
- Specified by:
RL_agent_step
in interface RLGlueInterface
RL_agent_end
public void RL_agent_end(double theReward)
- Specified by:
RL_agent_end
in interface RLGlueInterface
RL_step
public Reward_observation_action_terminal RL_step()
- Specified by:
RL_step
in interface RLGlueInterface
RL_cleanup
public void RL_cleanup()
- Specified by:
RL_cleanup
in interface RLGlueInterface
RL_episode
public int RL_episode(int maxStepsThisEpisode)
- Specified by:
RL_episode
in interface RLGlueInterface
RL_num_episodes
public int RL_num_episodes()
- Specified by:
RL_num_episodes
in interface RLGlueInterface
RL_num_steps
public int RL_num_steps()
- Specified by:
RL_num_steps
in interface RLGlueInterface
RL_return
public double RL_return()
- Specified by:
RL_return
in interface RLGlueInterface