Class StraightLine

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

    
    public final class StraightLine<T extends Object, P extends Position<P>>
     implements RoutingStrategy<T, P>
                        

    Routing strategy that computes a straight route from the current position to the final one. In this implementation obstacles are ignored.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      StraightLine()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Route<P> computeRoute(P currentPos, P finalPos) Computes a route between two positions.
      String toString()
      Boolean equals(Object other)
      Integer hashCode()
      • Methods inherited from class it.unibo.alchemist.model.movestrategies.RoutingStrategy

        cloneIfNeeded
      • Methods inherited from class java.lang.Object

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