Class GoTo

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

    
    public final class GoTo<T extends Object, P extends Position<P>>
     implements TargetSelectionStrategy<T, P>
                        

    TargetSelectionStrategy that has the objective to go towards a fixed destination in the Environment.

    • 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
      P getTarget()
      String toString()
      • Methods inherited from class it.unibo.alchemist.model.movestrategies.TargetSelectionStrategy

        cloneIfNeeded
      • Methods inherited from class java.lang.Object

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

      • GoTo

        GoTo(Environment<T, P> environment, Number destination)
        Parameters:
        environment - : the environment executing the simulation,
        destination - : an indefinite number of Number values that indicates the coordinates of the destination.
      • GoTo

        GoTo(P destination)