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

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

public class CountEmployeesNumber
extends jade.core.behaviours.WakerBehaviour

Title: CountEmployeesNumber

Description: extends WakerBehaviour. It is instanced by a CeckAgencyEmployees behaviour scheduled by the AgencyManager. It manages the agents not responding to the IsAlive message by sending to them an explicit Die message and replacing them with new ones. It make use of create*Agent methods of the AgencyManager. The died agents are removed from the proper collectors while new AIDs are automatically retrieved thanks to the subscribeServiceRegistrations method of the AgencyManager, activeted in its setup.

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
CountEmployeesNumber(AgencyManager myAgent, long wakeUp)
           
 
Methods inherited from class jade.core.behaviours.WakerBehaviour
action, done, reset, reset
 
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

CountEmployeesNumber

public CountEmployeesNumber(AgencyManager myAgent,
                            long wakeUp)