Class ExploCoopBehaviour
java.lang.Object
jade.core.behaviours.Behaviour
jade.core.behaviours.SimpleBehaviour
eu.su.mas.dedale.mas.agent.behaviours.ExploCoopBehaviour
- All Implemented Interfaces:
jade.util.leap.Serializable
,java.io.Serializable
public class ExploCoopBehaviour
extends jade.core.behaviours.SimpleBehaviour
Basic example of how to "collaboratively" explore the map - It explore the map using a DFS algorithm and blindly tries to share the topology with the agents within reach. - The shortestPath computation is not optimized - Agents do not coordinate themselves on the node(s) to visit, thus progressively creating a single file. It's bad. - The agent sends all its map, periodically, forever. Its bad x3. - You should give him the list of agents'name to send its map to in parameter when creating the agent. Object [] entityParameters={"Name1","Name2}; ag=createNewDedaleAgent(c, agentName, ExploreCoopAgent.class.getName(), entityParameters); It stops when all nodes have been visited.
- Author:
- hc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ExploCoopBehaviour(AbstractDedaleAgent myagent, MapRepresentation myMap, java.util.List<java.lang.String> agentNames)
-
Method Summary
-
Constructor Details
-
ExploCoopBehaviour
public ExploCoopBehaviour(AbstractDedaleAgent myagent, MapRepresentation myMap, java.util.List<java.lang.String> agentNames)- Parameters:
myagent
- ref to the agentmyMap
- known map of the world the agent is living inagentNames
- name of the agents to share the map with
-
-
Method Details