Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

App Structure

Diogo Cruz edited this page Nov 17, 2018 · 1 revision

Represents a Captain agent in the model. Implements 6 behaviors:

Represents a Soldier agent in the model. Implements 4 behaviors:

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.