Classes.CSoldier Class Reference

Inherits Classes.CTroop.

Inheritance diagram for Classes.CSoldier:

Inheritance graph
[legend]
Collaboration diagram for Classes.CSoldier:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

void setup ()
 'setup' method of jade agents.
void SetUpPriorities ()
 Definition of priorities for each kind of task.
boolean checkBackupAction (String _sContent)
 Decides if agent accepts the CFB request.

Member Function Documentation

void Classes.CSoldier.setup  )  [protected]
 

'setup' method of jade agents.

This method perform actions in common to CSoldier agents (and derived classes) and calls parent's setup.

Parameters:
- 
Returns:
-

Reimplemented from Classes.CTroop.

void Classes.CSoldier.SetUpPriorities  )  [protected]
 

Definition of priorities for each kind of task.

This method can be implemented in CTroop's derived classes to define the task's priorities in agreement to the role of the new class. Priorities must be defined in the array m_TaskPriority.

It's very useful to overload this method.

Parameters:
- 
Returns:
-

Reimplemented from Classes.CTroop.

boolean Classes.CSoldier.checkBackupAction String  _sContent  )  [protected]
 

Decides if agent accepts the CFB request.

This method is a decision function invoked when a CALL FOR BACKUP request has arrived. Parameter sContent is the content of message received in CFB responder behaviour as result of a CallForBackup request, so it must be: ( x , y , z ) ( SoldiersCount ) . By default, the return value is TRUE, so agents always accepts all CFB requests.

It's very useful to overload this method.

Parameters:
_sContent 
Returns:
TRUE


The documentation for this class was generated from the following file:
Generated on Fri Dec 16 20:13:54 2005 for JGomas by  doxygen 1.4.5