Class ExploSoloBehaviour

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

public class ExploSoloBehaviour
extends jade.core.behaviours.SimpleBehaviour
This behaviour allows an agent to explore the environment and learn the associated topological map. The algorithm is a pseudo - DFS computationally consuming because its not optimised at all.

When all the nodes around him are visited, the agent randomly select an open node and go there to restart its dfs.

This (non optimal) behaviour is done until all nodes are explored.

Warning, this behaviour does not save the content of visited nodes, only the topology.

Warning, this behaviour is a solo exploration and does not take into account the presence of other agents (or well) and indefinitely tries to reach its target node

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
    ExploSoloBehaviour​(AbstractDedaleAgent myagent, MapRepresentation myMap)  
  • Method Summary

    Modifier and Type Method Description
    void action()  
    boolean done()  

    Methods inherited from class jade.core.behaviours.SimpleBehaviour

    reset

    Methods inherited from class jade.core.behaviours.Behaviour

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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait