Package org.rlcommunity.rlglue.codec

Examples of org.rlcommunity.rlglue.codec.AgentInterface


*/
public class RunAllSkeletonNoSockets{
 
  public static void main(String[] args){
    //Create the Agent
    AgentInterface theAgent=new SkeletonAgent();
   
    //Create the Environment
    EnvironmentInterface theEnvironment=new SkeletonEnvironment();
   
    LocalGlue localGlueImplementation=new LocalGlue(theEnvironment,theAgent);
View Full Code Here


*/
public class RunMinesSarsaExperimentNoSockets{
 
  public static void main(String[] args){
    //Create the Agent
    AgentInterface theAgent=new SampleSarsaAgent();
   
    //Create the Environment
    EnvironmentInterface theEnvironment=new SampleMinesEnvironment();
   
    LocalGlue localGlueImplementation=new LocalGlue(theEnvironment,theAgent);
View Full Code Here

     * the environment variables.
   
     * @param agentClassName
     */
    public static AgentLoader loadAgent(String agentClassName) {
        AgentInterface agent = null;
        try {
            //Have to use the system classloader because if the codec is installed,
            //class.forName will use the ext classloader which won't find your classes.
            agent = (AgentInterface) ClassLoader.getSystemClassLoader().loadClass(agentClassName).newInstance();
        } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.rlcommunity.rlglue.codec.AgentInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.