Skip to content

Class skydata::behaviour::evals::TestCohesion

ClassList > skydata > behaviour > evals > TestCohesion

More...

Inherits the following classes: SKAgentBehaviour

Public Functions

Type Name
TestCohesion (SKAgent agent)
void action ()

Detailed Description

Test the cohesion in a family.

To do that, each second, the agent sends a message to all other family members and print the number of message sent. When an agent receives the message, it print the reception.

In the logs, the tag for the sending is "COHESION_SEND" and the tag for the reception is "COHESION_RECEIVE"

Public Functions Documentation

function TestCohesion

inline skydata::behaviour::evals::TestCohesion::TestCohesion (
    SKAgent agent
) 

Add this behaviour to an agent

Parameters:

  • agent : the agent

function action

inline void skydata::behaviour::evals::TestCohesion::action () 

Start the behaviour



The documentation for this class was generated from the following file /home/maxime/Desktop/skd_proto_v2/skd/src/main/java/skydata/behaviour/evals/TestCohesion.java