Examples of EnvironmentInterface


Examples of org.rlcommunity.rlglue.codec.EnvironmentInterface

  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);
    RLGlue.setGlue(localGlueImplementation);
   
   
View Full Code Here

Examples of org.rlcommunity.rlglue.codec.EnvironmentInterface

  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);
    RLGlue.setGlue(localGlueImplementation);
   
   
View Full Code Here

Examples of org.rlcommunity.rlglue.codec.EnvironmentInterface

    /**
     * Loads the class envClassName as an rl-glue environment.
     * @param envClassName
     */
    public static EnvironmentLoader loadEnvironment(String envClassName) {
        EnvironmentInterface env = null;

        //Had to use the system classloader in case the codec was actually installed.
        //If its installed, it uses a different classloader.
        try {
            env = (EnvironmentInterface) ClassLoader.getSystemClassLoader().loadClass(envClassName).newInstance();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.