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, 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:
  • Nested Class Summary

    Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour

    jade.core.behaviours.Behaviour.RunnableChangedEvent
  • Field Summary

    Fields inherited from class jade.core.behaviours.Behaviour

    myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     

    Methods inherited from class jade.core.behaviours.SimpleBehaviour

    reset

    Methods inherited from class jade.core.behaviours.Behaviour

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

    Methods inherited from class java.lang.Object

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

  • Method Details

    • action

      public void action()
      Specified by:
      action in class jade.core.behaviours.Behaviour
    • done

      public boolean done()
      Specified by:
      done in class jade.core.behaviours.Behaviour