Class AbstractConfigurableMoveNode

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Action , java.io.Serializable

    
    public abstract class AbstractConfigurableMoveNode<T, P extends Position<P>>
    extends AbstractMoveNode<T, P>
                        

    An abstract class that factorizes code for multiple different movements. With three strategies can be defined: the next target to be reached, the routing strategy to adopt, the speed to move at.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final P getNextPosition()
      • Methods inherited from class it.unibo.alchemist.model.actions.AbstractMoveNode

        execute, getContext
      • Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction

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

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

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

    • Method Detail

      • getNextPosition

         final P getNextPosition()
        Returns:

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