Class AbstractSteeringAction

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Double maxWalk
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Double getMaxWalk()
      P getNextPosition()
      abstract AbstractSteeringAction<T, P, A> cloneAction(Node<T> node, Reaction<T> reaction) This method allows to clone this action on a new node.
      • Methods inherited from class it.unibo.alchemist.model.cognitive.SteeringAction

        nextPosition
      • Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction

        getOutboundDependencies, toString
      • Methods inherited from class it.unibo.alchemist.model.actions.AbstractMoveNode

        execute, getContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getNextPosition

         P getNextPosition()
        Returns:

        The next position where to move, in absolute or relative coordinates depending on the value of isAbsolute.

      • cloneAction

         abstract AbstractSteeringAction<T, P, A> cloneAction(Node<T> node, Reaction<T> reaction)

        This method allows to clone this action on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.

        Parameters:
        node -
        The node where to clone this {@link Action}
        reaction -
        The reaction to which the CURRENT action is assigned
        Returns:

        the cloned action