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
-
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
-
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 agentperiod
- the periodicity of the behaviour (in ms)mymap
- (the map to share)receivers
- the list of agents to send the map to
-