Class skydata::behaviour::SKD::FreezeLeaderDeletion¶
ClassList > skydata > behaviour > SKD > FreezeLeaderDeletion
Inherits the following classes: skydata::behaviour::SKD::FreezeLocal
Public Functions¶
Type | Name |
---|---|
FreezeLeaderDeletion (SKAgent agent) |
Public Functions inherited from skydata::behaviour::SKD::FreezeLocal¶
See skydata::behaviour::SKD::FreezeLocal
Type | Name |
---|---|
FreezeLocal (SKAgent agent) |
|
void | action () |
boolean | isFinished (Data data) |
Protected Functions¶
Type | Name |
---|---|
void | afterFreeze (Data data) |
Protected Functions inherited from skydata::behaviour::SKD::FreezeLocal¶
See skydata::behaviour::SKD::FreezeLocal
Type | Name |
---|---|
void | afterFreeze (Data data) |
void | unfreeze (Data data) |
Detailed Description¶
This behaviour aims to delete the agents on the same Harbour only if they are more than RGLocal
The idea is to elect a leader (with a bully algorithm) and then, the leader select the agents which will survive
Public Functions Documentation¶
function FreezeLeaderDeletion¶
inline skydata::behaviour::SKD::FreezeLeaderDeletion::FreezeLeaderDeletion (
SKAgent agent
)
Add this behaviour to an agent
Parameters:
agent
: the agent
Protected Functions Documentation¶
function afterFreeze¶
inline void skydata::behaviour::SKD::FreezeLeaderDeletion::afterFreeze (
Data data
)
The function called when the freeze is ended
Parameters:
data
: the data of the freeze
Implements skydata::behaviour::SKD::FreezeLocal::afterFreeze
The documentation for this class was generated from the following file /home/maxime/Desktop/skd_proto_v2/skd/src/main/java/skydata/behaviour/SKD/FreezeLeaderDeletion.java