Project:
Java JADE Multi-Agent Systems
Program Description:
The goal of this project was to use the Java Agent Development Environment (JADE) to gain experience working with the Agent Oriented software development paradigm.
The objective was to build autonomous software agents that would explore a two dimensional tile world where they would be part of a team of agents. There would be two teams in the world, a red and a blue. The goal of the agents was to search and discover opponent team members and to gain the support of there teammates to pursue and destroy an agreed upon opponent member.
An agent could only be killed if it is surrounded by its opponents in the four cardinal directions.
Key areas of the project was agent communication, agent contract nets, decision making, and planning.
Features:
Written in Java 1.6 Standard Edition
Implements JADE 4.0.1
Implements
Contract Nets
Ontologies
Serialized Object Message Passing
A Star Search Planning
Thread Spawning
Interesting example for agent applications
Code Snippet:
The Generate Next Move Class is a one shot behavior that generates the next move. The next move chosen depends on if the agent is wandering or following a generated planned sequence of moves. If the Agent is wandering then a pseudo random direction is chosen and the agent moves in that direction. If the agent is following a path it removes the first node of the path plan and moves to the position dictated by the node.