Package org.rlcommunity.rlglue.codec.util

Examples of org.rlcommunity.rlglue.codec.util.AgentLoader


            Properties p = new Properties(System.getProperties());
            p.load(new FileInputStream(new File(config_path)));
            System.setProperties(p);
           
            RRLAlgorithm algorithm = (RRLAlgorithm)AgentProperties.getAlgorithmClass().newInstance();
            AgentLoader loader = new AgentLoader(new GGPAgent(algorithm,explore));
            loader.run();
        }
        catch(Exception e)
        {
            throw new RuntimeException(e);
        }
View Full Code Here


     *
     * @param args
     */
    public static void main(String[] args)
    {
        AgentLoader theLoader = new AgentLoader(new SkeletonAgent());
        theLoader.run();
    }
View Full Code Here

*/
public class RunAllSkeleton{
 
  public static void main(String[] args){
    //Create an agentLoader that will start the agent when its run method is called
    AgentLoader theAgentLoader=new AgentLoader(new SkeletonAgent());
    //Create an environmentloader that will start the environment when its run method is called
    EnvironmentLoader theEnvironmentLoader=new EnvironmentLoader(new SkeletonEnvironment());
   
    //Create threads so that the agent and environment can run asynchronously    
    Thread agentThread=new Thread(theAgentLoader);
View Full Code Here

     * This is a trick we can use to make the agent easily loadable.
     * @param args
     */
   
    public static void main(String[] args){
       AgentLoader theLoader=new AgentLoader(new SkeletonAgent());
        theLoader.run();
  }
View Full Code Here

  }


    public static void main(String[] args){
      System.out.println("Message from inside the agent: Running the Q-Learning Agent Alpha version!!!");
      AgentLoader L=new AgentLoader(new QTetrisAgent());
      L.run();
    }
View Full Code Here

    {
  System.out.println("Running the Q-Learning Agent Alpha version!!!");        
        QTetrisAgent agent = new QTetrisAgent();
        //SampleTetrisAgent agent = new SampleTetrisAgent();
        //RandomAgent agent = new RandomAgent();
        AgentLoader agentloader = new AgentLoader(agent);
        agentloader.run();
   }
View Full Code Here

     * trick you can directly execute the class and it will load itself through
     * AgentLoader and connect to the rl_glue server.
     * @param args
     */
    public static void main(String[] args) {
        AgentLoader theLoader = new AgentLoader(new SampleSarsaAgent());
        theLoader.run();
    }
View Full Code Here

*/
public class RunMinesSarsaExperiment{
 
  public static void main(String[] args){
    //Create an agentLoader that will start the agent when its run method is called
    AgentLoader theAgentLoader=new AgentLoader(new SampleSarsaAgent());
    //Create an environmentloader that will start the environment when its run method is called
    EnvironmentLoader theEnvironmentLoader=new EnvironmentLoader(new SampleMinesEnvironment());
   
    //Create threads so that the agent and environment can run asynchronously    
    Thread agentThread=new Thread(theAgentLoader);
View Full Code Here

    public void agent_cleanup() {
        // TODO Auto-generated method stub
    }
   
    public static void main(String[] args){
        AgentLoader L=new AgentLoader(new Test_Empty_Agent());
        L.run();
    }
View Full Code Here

    public void agent_cleanup() {
        // TODO Auto-generated method stub
    }
   
    public static void main(String[] args){
        AgentLoader L=new AgentLoader(new Test_1_Agent());
        L.run();
    }
View Full Code Here

TOP

Related Classes of org.rlcommunity.rlglue.codec.util.AgentLoader

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.