Class PolygonalChain

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Route , java.io.Serializable , java.lang.Iterable

    
    public class PolygonalChain<P extends Position<out Object>>
     implements Route<P>
                        

    Abstract route implementation.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final boolean equals(Object other)
      final P getPoint(int step)
      final ImmutableList<P> getPoints()
      final int hashCode()
      final Iterator<P> iterator()
      final double length()
      final int size()
      final Stream<P> stream()
      String toString() Prints the class name and the list of positions.
      • Methods inherited from class java.lang.Iterable

        forEach, spliterator
      • Methods inherited from class java.lang.Object

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

      • PolygonalChain

        PolygonalChain(Array<P> positions)
        Parameters:
        positions - the positions this route traverses
      • PolygonalChain

        PolygonalChain(List<P> positions)
        Parameters:
        positions - the positions this route traverses