Class skydata::internal::behaviours::SKAgentBehaviour¶
ClassList > skydata > internal > behaviours > SKAgentBehaviour
Inherits the following classes: Behaviour
Inherited by the following classes: skydata::internal::behaviours::CleanMessagesBuffer, skydata::internal::behaviours::ReceiveOnReliableSend, skydata::internal::behaviours::RegularlyUpdateKnowledge, skydata::internal::behaviours::UpdateFamilyKnowledge, skydata::internal::behaviours::UpdateStatsHarbour
Public Attributes¶
Type | Name |
---|---|
SKAgent | agent = null |
Public Functions¶
Type | Name |
---|---|
SKAgentBehaviour (SKAgent agent) |
|
void | action () |
void | actionWithParameters (Object o) |
boolean | done () |
Detailed Description¶
Class to inherit in order to implement a behaviour for an agent
Public Attributes Documentation¶
variable agent¶
SKAgent skydata.internal.behaviours.SKAgentBehaviour.agent;
Reference to the agent
Public Functions Documentation¶
function SKAgentBehaviour¶
inline skydata::internal::behaviours::SKAgentBehaviour::SKAgentBehaviour (
SKAgent agent
)
Construct an empty behaviour and add it to an agent
Parameters:
agent
: the agent
function action¶
inline void skydata::internal::behaviours::SKAgentBehaviour::action ()
Function called when the behaviour is started and have not parameters
function actionWithParameters¶
inline void skydata::internal::behaviours::SKAgentBehaviour::actionWithParameters (
Object o
)
Function called when the behaviour is started and have parameters
Parameters:
o
: parameters
function done¶
inline boolean skydata::internal::behaviours::SKAgentBehaviour::done ()
Function called to test if the behaviour is ended
The documentation for this class was generated from the following file /home/maxime/Desktop/skd_proto_v2/skd/src/main/java/skydata/internal/behaviours/SKAgentBehaviour.java