... an abstract class which contains the functionality for connecting to the facilitator and another file that shows how to use it. The files haven't been complied and tested on their own but I have used these files in another project and the idea does work.The three files are:-
The best bet is just have a look at the code, it should fall into place.....
- Agent.java - the abstract class that connects to the facilitator using details found in the setup.pl. The create answer function is used for constructing a string into an iclStr term..
- Robot.java - inherits from this class, the constructor of this class sets the agents name and capabilities(solvables) and then connects to the facilitator. The callback function is defined in this class and the create answer function is called.
- Application.java - just creates an instance of the robot class which basically gets everything running
If anyone wants to update it, change it, whatever, let me know and send me the code please..... hope this helps.
Download: