-
Notifications
You must be signed in to change notification settings - Fork 0
App Structure
Represents a Captain agent in the model. Implements 6 behaviors:
- ExchangeInformation - initiates the protocol fipa-propose with the General and responds to the proposals initiated by the Soldiers;
- MoveToAnotherZone - tries to move the Captain, and other Soldiers, to another region of the map when the region in which it is has already been explored;
- ListenBroadcastGoal- responsible for receiving the messages of the other Captains with the information regarding the positioning of the objective;
- ReceiveGoal - responsible for receiving the message of a Soldier of yours with the information regarding the positioning of the target;
- MoveBehaviour- responsible for the Captain's move;
- BroadcastGoal - responsible for sending a message to the other Captains with the information regarding the positioning of the target.
Represents a Soldier agent in the model. Implements 4 behaviors:
- SoldierBehaviour - responsible for the beginning of the protocol with a view to the positioning of the Soldiers;
- MoveBehaviour - responsible for the movement of the Soldier;
- SearchGoal - responsible for seeking the goal in the area affects each Soldier;
- SendGoal - responsible for sending a message to your Captain with the information regarding the positioning of the target.
Represents the goal point.
Its value is being generated randomly in the Objective class and is passed in the launcher when initializing the system variables.
It is not an agent, so it does not define any behavior.
It represents an obstacle.
A hundred obstacles are initialized in the system launcher, arranged randomly along the space matrix.
It is not an agent, so it does not define any behavior.
Here we define a set of static variables that define the simulation model and environment.
These include the dimensions of the two-dimensional matrix that represents the physical space, the number of captains, the number of soldiers and the radius of vision of the agents.
The value of these variables is imported from the parameters.xml file (which is inside the unknownexplorer.rs folder) and can be manually configured by the user.
Here the agent initialization is done, then the launch of the space matrix, the obstacles and the goal point are performed.
Made by André Correia & Diogo Cruz