This will explain how to create an agent such as the reflex agent in the folder:  "myDirPath\dAIILE_0_4\AIILE\gridwolrd\agent\reflex\".  You will find the source code for a simple reflex agent.

1. There are three files that need to be created to allow an agent to work in the AIILE system.  The first is the agent class it's self, e.g. "ReflexAgent.java"  this must inherit the super class "AIILE.gridworld.agent.AbstractGridWorldAgent"  This abstract class can be found in the java docs.  Look at the run method in the reflex agent to see how information is send and returned to the gridworld environment. 

2. There are two other classes that can be found in the reflex directory, the "ReflexAgentCustomizer" and the "ReflexAgentBeanInfo".  These must be provided so that the JavaBean components work correctly.  The "ReflexAgentCustomizer" class simply extends the "AIILE.gridworld.connection.AbstractGridWorldCustomizer" super class.  When creating any agent, let's say MyAgent, this class must be called "MyAgentCustomizer". 

3.  The other class that must be created is the "ReflexAgentBeanInfo" class.  This class must extend the superclass of "AIILE.gridworld.connection.AbstractGridWorldBeanInfo".  A method must be overwriten as well.  The easiest way is to copy the ReflexAgentBeanInfo class and rename it.  This class must also have "BeanInfo" at the end of it, similar to the customizer class.  When overwritting the method "getPropertyDescriptor(), the bean class must be the agent class name, for example "MyAgent.class".  The customizer class must be the customizer class associated with this agent, "MyAgentCustomizer.class".

4.  Once the agent has an AI algortihm in the "run" method of "MyAgent"  and is compiled, the agent bean must be put into a  .jar file.  The easiest way would be to copy the "reflexagent.bat" and "reflex.mf" and rename them something like "myagent.bat" and "myagent.mf".  The .mf file is the manifest file for the jar file.  It should have the two lines in it:

Name: MyAgent.class  <-- add a path if needed
Java-Bean: True
          <--- need a return here or else won't work

The myagent.bat will need the following:

jar cfm AIILE\GamePackages\GridWorld\Agents\MyAgent.jar myagent.mf AIILE\gridworld    <---- all on one line

This batch file will create a MyAgent.jar file in the correct directory for the AIILLE program to read them. Double click to make it work.

5. Run the AIILE program and MyAgent.jar should appear in the new dialogue screen.

6.  For more information about .jar files and beans checkout "Writing a Simple Bean" at the AIILE home page in the help section.