Upgrade Instructions

These instructions have been moved into the user documentation.

Upgrading from 2.x Compatible to 3.x Compatible

This seems like a lot of work, but it's easier than it seems. The main changes from the user end are:

1) Using the right jar (JavaRLGlueCodec.jar instead of RL-Glue.jar) (Not necessary if you are using RL-Viz)

2) Change classes that implement Agent or Environment to "AgentInterface" or "EnvironmentInterface"

3) Change package imports

Find and replace:

rlglue.RLGlue ==> org.rlcommunity.rlglue.codec.RLGlue

rlglue.types. ==> org.rlcommunity.rlglue.codec.types.

rlglue.agent.Agent ==> org.rlcommunity.rlglue.codec.AgentInterface

rlglue.environment.Environment ==> org.rlcommunity.rlglue.codec.EnvironmentInterface

That's most all I've had to do. I'll add more if I find more.

Loading my Agent/Environment

The easiest way to get your agent or environment to load is to put a 'main' method into them, like this:

import org.rlcommunity.rlglue.codec.util.AgentLoader;

/* rest of agent here */

//This would be inside Test_1_Agent.java

public static void main(String[] args){

AgentLoader theLoader=new AgentLoader(new Test_1_Agent());

theLoader.run();

}

import org.rlcommunity.rlglue.codec.util.EnvironmentLoader;

/* rest of agent here */

//This would be inside Test_1_Environment.java

public static void main(String[] args){

EnvironmentLoader theLoader=new Test_1_Environment(new Test_1_Environment());

theLoader.run();

}