it.polito.elite.doseWS.agency.behaviours
Class CeckAgencyEmployees

java.lang.Object
  extended byjade.core.behaviours.Behaviour
      extended byjade.core.behaviours.SimpleBehaviour
          extended byjade.core.behaviours.OneShotBehaviour
              extended byit.polito.elite.doseWS.agency.behaviours.CeckAgencyEmployees
All Implemented Interfaces:
java.io.Serializable, jade.util.leap.Serializable

public class CeckAgencyEmployees
extends jade.core.behaviours.OneShotBehaviour

Title: CeckAgencyEmployees

Description: Parts of the autonomic features of the platform. It sends an isAlive message to each AID present in Annotators, Filters and SynsetManagers HashSet collectors of the AgencyManager agents who schedules this behaviour. Such collectors are managed and filled by the manager itself. See subscribeServiceRegistrations method of AgencyManager for details. After sending this message it further schedules a CountEmployeesNumber (extends WakerBehaviour) that its executed after a certain delay time in order to get the AIDs of the not responding agents. The manager backs up such message receiver agent AIDs on its internal collector PendingEmployees Hashtable. From this collector the replyng agents (who therefore are still alive and running)are removed by the manager itself.

Copyright: Copyright (c) 2004

Company: Politecnico di Torino

Author:
alessio.bosca@polito.it
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jade.core.behaviours.Behaviour
STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
CeckAgencyEmployees(AgencyManager myAgent)
           
 
Method Summary
 void action()
           
 
Methods inherited from class jade.core.behaviours.OneShotBehaviour
done
 
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
 
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, block, getBehaviourName, getDataStore, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CeckAgencyEmployees

public CeckAgencyEmployees(AgencyManager myAgent)
Method Detail

action

public void action()