kaos.robots.util
Class SearchArea
java.lang.Object
kaos.robots.util.Area
kaos.robots.util.SearchArea
- All Implemented Interfaces:
- java.io.Serializable, Plottable
public class SearchArea
- extends Area
- implements Plottable, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SearchArea
public SearchArea(Coordinate ul,
Coordinate lr,
double laneWidth,
double legWidth)
getNumberOfLegs
public int getNumberOfLegs()
isClearLaneFound
public boolean isClearLaneFound()
getNextLeg
public Leg getNextLeg(double legWidth,
Coordinate currentPose)
getLeg
public Leg getLeg(int id)
setCurrentLeg
public void setCurrentLeg(Leg leg)
getCurrentLeg
public Leg getCurrentLeg()
updateLeg
public void updateLeg(Leg leg)
getID
public java.lang.String getID()
- Specified by:
getID
in interface Plottable
getType
public java.lang.String getType()
- Specified by:
getType
in interface Plottable
getLevel
public int getLevel()
- Specified by:
getLevel
in interface Plottable
draw
public void draw(java.awt.Graphics g,
int Xcenter,
int Ycenter,
int scaleFactor)
- Must provide a draw method for plotter to render artifact
- Specified by:
draw
in interface Plottable
main
public static void main(java.lang.String[] args)