kaos.robots.util
Class SearchArea

java.lang.Object
  extended by kaos.robots.util.Area
      extended by 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

Field Summary
 
Fields inherited from class kaos.robots.util.Area
areaName, lowerrightBoundary, upperLeftBoundary
 
Constructor Summary
SearchArea(Coordinate ul, Coordinate lr, double laneWidth, double legWidth)
           
 
Method Summary
 void draw(java.awt.Graphics g, int Xcenter, int Ycenter, int scaleFactor)
          Must provide a draw method for plotter to render artifact
 Leg getCurrentLeg()
           
 java.lang.String getID()
           
 Leg getLeg(int id)
           
 int getLevel()
           
 Leg getNextLeg(double legWidth, Coordinate currentPose)
           
 int getNumberOfLegs()
           
 java.lang.String getType()
           
 boolean isClearLaneFound()
           
static void main(java.lang.String[] args)
           
 void setCurrentLeg(Leg leg)
           
 void updateLeg(Leg leg)
           
 
Methods inherited from class kaos.robots.util.Area
getLowerRightBoundary, getName, getUpperLeftBoundary, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchArea

public SearchArea(Coordinate ul,
                  Coordinate lr,
                  double laneWidth,
                  double legWidth)
Method Detail

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)