Class ShareMapBehaviour

java.lang.Object
jade.core.behaviours.Behaviour
jade.core.behaviours.SimpleBehaviour
jade.core.behaviours.TickerBehaviour
eu.su.mas.dedale.mas.agent.behaviours.ShareMapBehaviour
All Implemented Interfaces:
jade.util.leap.Serializable, java.io.Serializable

public class ShareMapBehaviour
extends jade.core.behaviours.TickerBehaviour
The agent periodically share its map. It blindly tries to send all its graph to its friend(s) If it was written properly, this sharing action would NOT be in a ticker behaviour and only a subgraph would be shared.
Author:
hc
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class jade.core.behaviours.Behaviour

    STATE_BLOCKED, STATE_READY, STATE_RUNNING
  • Constructor Summary

    Constructors 
    Constructor Description
    ShareMapBehaviour​(jade.core.Agent a, long period, MapRepresentation mymap, java.util.List<java.lang.String> receivers)
    The agent periodically share its map.
  • Method Summary

    Methods inherited from class jade.core.behaviours.TickerBehaviour

    action, done, getTickCount, onStart, reset, reset, setFixedPeriod, stop

    Methods inherited from class jade.core.behaviours.Behaviour

    actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getRestartCounter, handleRestartEvent, isRunnable, onEnd, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShareMapBehaviour

      public ShareMapBehaviour​(jade.core.Agent a, long period, MapRepresentation mymap, java.util.List<java.lang.String> receivers)
      The agent periodically share its map. It blindly tries to send all its graph to its friend(s) If it was written properly, this sharing action would NOT be in a ticker behaviour and only a subgraph would be shared.
      Parameters:
      a - the agent
      period - the periodicity of the behaviour (in ms)
      mymap - (the map to share)
      receivers - the list of agents to send the map to