kaos.robots.util
Class Leg

java.lang.Object
  extended by kaos.robots.util.Leg
All Implemented Interfaces:
java.io.Serializable

public class Leg
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Leg(Coordinate ul, Coordinate lr, int orientation)
           
 
Method Summary
 void calculatePercentSearched()
           
 boolean containsObject(DetectedObject obj)
           
 double distanceBetween(Coordinate there, Coordinate here)
           
 Coordinate getEndPoint()
           
 int getID()
           
 double getLegWidth()
           
 Coordinate getLR()
           
 double getPercentSearched()
           
 Coordinate getStartPoint(Coordinate currentLoc)
           
 long getStartTime()
           
 Coordinate getUL()
           
 Coordinate getUnsearchedLR()
           
 Coordinate getUnsearchedUL()
           
 boolean isBeingSearched()
           
 boolean isBlocked()
           
 boolean isLegClear()
           
static void main(java.lang.String[] args)
           
 void setBeingSearched(boolean beingSearched)
           
 void setBlocked(boolean blocked)
           
 void setID(int id)
           
 void setPercentSearched(double percent)
           
 void updateStartPoint(Coordinate newStartPoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Leg

public Leg(Coordinate ul,
           Coordinate lr,
           int orientation)
Method Detail

getLegWidth

public double getLegWidth()

isLegClear

public boolean isLegClear()

getStartPoint

public Coordinate getStartPoint(Coordinate currentLoc)

getEndPoint

public Coordinate getEndPoint()

updateStartPoint

public void updateStartPoint(Coordinate newStartPoint)

distanceBetween

public double distanceBetween(Coordinate there,
                              Coordinate here)

setPercentSearched

public void setPercentSearched(double percent)

calculatePercentSearched

public void calculatePercentSearched()

getPercentSearched

public double getPercentSearched()

getStartTime

public long getStartTime()

setBeingSearched

public void setBeingSearched(boolean beingSearched)

isBeingSearched

public boolean isBeingSearched()

setBlocked

public void setBlocked(boolean blocked)

isBlocked

public boolean isBlocked()

setID

public void setID(int id)

getID

public int getID()

containsObject

public boolean containsObject(DetectedObject obj)

getUnsearchedUL

public Coordinate getUnsearchedUL()

getUnsearchedLR

public Coordinate getUnsearchedLR()

getUL

public Coordinate getUL()

getLR

public Coordinate getLR()

main

public static void main(java.lang.String[] args)