kaos.robots.util
Class Leg
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Leg
public Leg(Coordinate ul,
Coordinate lr,
int orientation)
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)