edu.udo.cs.ie.cowbots.util
Class PositionFinder

Package class diagram package PositionFinder
java.lang.Object
  extended by edu.udo.cs.ie.cowbots.util.PositionFinder

public class PositionFinder
extends java.lang.Object


Constructor Summary
PositionFinder()
           
 
Method Summary
static java.awt.Point getBestPositionByWPAndTarget(java.awt.Point wp, java.awt.Point target, GridMap map)
          Tries to retrieve the best position, according to the desired target and the waypoint the target is derived from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionFinder

public PositionFinder()
Method Detail

getBestPositionByWPAndTarget

public static java.awt.Point getBestPositionByWPAndTarget(java.awt.Point wp,
                                                          java.awt.Point target,
                                                          GridMap map)
Tries to retrieve the best position, according to the desired target and the waypoint the target is derived from. Assumes that wp is a valid position on the map

Parameters:
wp - Waypoint the target is derived from
target - The target as the agents position in the formation
map - The map
Returns:
At the best the target, at the worst the waypoint