Fire Agent Model - version z

 

When detecting a fire, firemen send alarm message. Unoccupied firemen run to help busy colleagues. Firemen can be communicated.
To download this tutorial =.

Fire Agent Model - Version 6
Defining MessageClass class

6.1.1 Add a new attribute named «location»

6.1.2 Create accessor for the attribute «location»

6.2

Modify the Fireman class

6.2.1 Add a new control method named «alarmCalling»

6.2.2 Add a new control method named «readMail»

 

6.2.3 Modify control method which is named «step»

Adjust the initial instanciation of Fire Model

Run version 6 of Fire Model

 

 


Le Cirad Centre de coopération internationale en recherche agronomique pour le développement
Legal notice © Copyright Cirad 2001-2015 cormas-webmaster@cirad.fr