Skip to content

Class skydata::internal::agents::SKHM

ClassList > skydata > internal > agents > SKHM

More...

Inherits the following classes: skydata::internal::agents::SKAgent

Public Attributes inherited from skydata::internal::agents::SKAgent

See skydata::internal::agents::SKAgent

Type Name
Map< String, Object > args = null
Boolean inDebug = false
int size
long startingDate = 0

Public Functions

Type Name
SKHM ()

Public Functions inherited from skydata::internal::agents::SKAgent

See skydata::internal::agents::SKAgent

Type Name
void addBehaviour (Behaviour wakerBehaviour)
final void addInternalUpdate (String type, SKAgentBehaviour b)
void afterClone ()
void afterMove ()
void blockMigrate ()
void broadcast (BroadcastI broadCaster, SKLMessage message, Set< SKAID > agents)
boolean canMigrate ()
Set< SKAID > connectedHarbours ()
final void createStorageObject (String property, Serializable value)
void debug (String s)
void delete ()
void doClone (Location loc, String newName)
void doMove (Location loc)
HashMap< SKAID, HashMap< String, Comparable > > getHarboursStats ()
HashMap< String, HashMap< String, SKLMessage > > getMsgInfoBF ()
final SKAID getRealSKAID ()
HashMap< String, HashMap< String, Long > > getReceivedMsgs ()
final SKAID getSKAID ()
long getStartingDate ()
final Serializable getStorageObject (String property)
final boolean hasStorageObject (String property)
void migrate (AID harbour)
void migrate (AID harbour, boolean forced)
SKAID myHarbour ()
void print (String s)
void setMsgInfoBF (HashMap< String, HashMap< String, SKLMessage > > inf)
SKLMessage skReceive (MessageTemplate mt)
void skSendNormal (SKLMessage msg)
void skSendReliable (SKLMessage msg)
void unblockMigrate ()

Protected Attributes inherited from skydata::internal::agents::SKAgent

See skydata::internal::agents::SKAgent

Type Name
Set< SKAID > harbours
HashMap< SKAID, HashMap< String, Comparable > > harboursStats = new HashMap&lt;SKAID, HashMap&lt;String, Comparable&gt;&gt;()
Boolean inMigration
Set< SKAID > membersHarbour = new HashSet&lt;SKAID&gt;()
SKAID myAID
int nbBlockingMigrate = 0

Protected Functions

Type Name
void setup ()
void setupStats ()

Protected Functions inherited from skydata::internal::agents::SKAgent

See skydata::internal::agents::SKAgent

Type Name
void beforeMove ()
final void internalUpdate (String type, Object o)
final void internalUpdate (String type)
void reset ()
void run (String action)
void setup ()
void setupStats ()

Detailed Description

Represent an Harbour Manager.

The goal of an Harbour Manager is to manage an Harbour and the agents hosted.

Public Functions Documentation

function SKHM

inline skydata::internal::agents::SKHM::SKHM () 

Construct a new SKHM


Protected Functions Documentation

function setup

inline void skydata::internal::agents::SKHM::setup () 

Initialize a SKHM

Implements skydata::internal::agents::SKAgent::setup


function setupStats

inline void skydata::internal::agents::SKHM::setupStats () 

Setup the communication with the agents in order to send some statistics on this harbour

Implements skydata::internal::agents::SKAgent::setupStats



The documentation for this class was generated from the following file /home/maxime/Desktop/skd_proto_v2/skd/src/main/java/skydata/internal/agents/SKHM.java