Interface SteeringStrategy

  • All Implemented Interfaces:

    
    public interface SteeringStrategy<T extends Object, P extends Position<P>>
    
                        

    Strategy interface describing how the next points of the steering actions are combined to calculate the next position to move on.

    • 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
      abstract P computeNextPosition(List<SteeringAction<T, P>> actions) Computes the next position starting from the steering actions the node obey to, in relative coordinates with respect to its current position.
      abstract P computeTarget(List<SteeringAction<T, P>> actions) Computes the target to reach starting from the steering actions the node obey to, in absolute coordinates.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • computeNextPosition

         abstract P computeNextPosition(List<SteeringAction<T, P>> actions)

        Computes the next position starting from the steering actions the node obey to, in relative coordinates with respect to its current position.

        Parameters:
        actions -
        the list of actions to combine.
      • computeTarget

         abstract P computeTarget(List<SteeringAction<T, P>> actions)

        Computes the target to reach starting from the steering actions the node obey to, in absolute coordinates.

        Parameters:
        actions -
        the list of actions to combine.