code: private static void goTo(ShanksSimulation simulation,
              MobileShanksAgent agent, Double2D currentLocation,
              Double2D targetLocation, double speed) {
          if (!targetLocation.equals(currentLocation) && agent.isAllowedToMove()) {
              Double2D direction = targetLocation.subtract(currentLocation);
              direction = direction.normalize();
              Double2D movement = direction.multiply(speed);
              ShanksAgentMovementCapability.updateLocation(simulation, agent,
                      currentLocation.add(movement));
          }
      }
docs: Move the agent to the target location with the specific speed. Call this
  method always you want to move. This method only moves the agent a
  fragment equals to the velocity.
  
  @param simulation
  @param agent
  @param currentLocation
  @param targetLocation
  @param speed