public class WallObject extends StationaryObject
potentialVector| Constructor and Description | 
|---|
| WallObject(double[] point1,
          double[] point2,
          double standoff)Constructor | 
| WallObject(double x1,
          double y1,
          double x2,
          double y2,
          double standoff)Constructor | 
| WallObject(LineSegment line,
          double standoff)Constructor | 
| WallObject(Point point1,
          Point point2,
          double standoff)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getDistance(double[] point) | 
| double | getDistance(double[] end1,
           double[] end2) | 
| double | getDistance(double x,
           double y) | 
| double | getDistance(double x1,
           double y1,
           double x2,
           double y2) | 
| double | getDistance(LineSegment segment) | 
| double | getDistance(Point point) | 
| double | getDistance(Point end1,
           Point end2) | 
| void | getVisiblePoints(double[] startPt,
                ArrayList<double[]> result)Develops a list of corner points or tangent points that are potentially
 visible from an input point--does include "standoff" in calculation
 (does not test whether other objects are in the way) | 
| void | setEnd1(double[] newEnd)Moves the first end point of the wall to a new position | 
| void | setEnd1(double newX,
       double newY)Moves the first end point of the wall to a new position | 
| void | setEnd1(Point newEnd)Moves the first end point of the wall to a new position | 
| void | setEnd2(double[] newEnd)Moves the second end point of the wall to a new position | 
| void | setEnd2(double newX,
       double newY)Moves the second end point of the wall to a new position | 
| void | setEnd2(Point newEnd)Moves the second end point of the wall to a new position | 
| void | setEnds(double[] newEnd1,
       double[] newEnd2)Moves the end points of the wall to a new position | 
| void | setEnds(double newX1,
       double newY1,
       double newX2,
       double newY2)Moves the end points of the wall to a new position | 
| void | setEnds(Point newEnd1,
       Point newEnd2)Moves the end points of the wall to a new position | 
| void | setPosit(double newX,
        double newY)Resets the object's position in the world. | 
| void | setPosit(Point newPosit)Resets the object's position in the world. | 
| String | toMATLABString()Generates a string representation of the Path object that can be used to plot the path in MATLAB | 
| String | toString()Generates a string representation of the wall object | 
getDistanceOfConcern, getPosit, getPotentialForce, getPotentialForce, getPotentialForce, getPotentialForceDirection, getPotentialForceDirection, getPotentialForceDirection, getPotentialVector, getPotentialVector, getPotentialVector, getStandoff, getXPosit, getYPosit, setPosit, setStandoffpublic WallObject(double x1,
          double y1,
          double x2,
          double y2,
          double standoff)
x1 - north/south coordinate of the first endpoint of the wall in Cartesian spacey1 - east/west coordinate of the first endpoint of the wall in Cartesian spacex2 - north/south coordinate of the second endpoint of the wall in Cartesian spacey2 - east/west coordinate of the first endpoint of the wall in Cartesian spacestandoff - required distance (meters) that the vehicle must remain clear from this objectpublic WallObject(double[] point1,
          double[] point2,
          double standoff)
point1 - defines the first endpoint of the wall in Cartesian spacepoint2 - defines the second endpoint of the wall in Cartesian spacestandoff - required distance (meters) that the vehicle must remain clear from this objectpublic WallObject(Point point1, Point point2, double standoff)
point1 - defines the first endpoint of the wall in Cartesian spacepoint2 - defines the second endpoint of the wall in Cartesian spacestandoff - required distance (meters) that the vehicle must remain clear from this objectpublic WallObject(LineSegment line, double standoff)
line - defines the endpoints of the wall in Cartesian spacepublic void getVisiblePoints(double[] startPt,
                    ArrayList<double[]> result)
getVisiblePoints in class StationaryObjectstartPt - Cartesian coordinates of the point being testedresult - container into which the computed points (double[2]) that
         can be reached from the test point without crossing the
         objects will be addedpublic String toMATLABString()
toMATLABString in class StationaryObjectpublic void setPosit(double newX,
            double newY)
setPosit in class WorldObjectnewX - newY - public void setPosit(Point newPosit)
setPosit in class WorldObjectnewPosit - 2-element array containing the new Cartesian positionpublic double getDistance(double[] point)
getDistance in class WorldObjectpoint - a 2x1 double[] containing the Cartesian coordinates of the point being testedpublic double getDistance(Point point)
getDistance in class WorldObjectpoint - a 2x1 double[] containing the Cartesian coordinates of the point being testedpublic double getDistance(double x,
                 double y)
getDistance in class WorldObjectx - the north/south Cartesian coordinate of the point being testedy - the east/west Cartesian coordinate of the point being testedpublic double getDistance(LineSegment segment)
getDistance in class WorldObjectsegment - an object containing the line segmentpublic double getDistance(Point end1, Point end2)
getDistance in class WorldObjectend1 - an object containing the Cartesian coordinates of the first end pointend2 - an object containing the Cartesian coordinates of the second end pointpublic double getDistance(double[] end1,
                 double[] end2)
getDistance in class WorldObjectend1 - a 2x1 double[] containing the Cartesian coordinates of the first segment end pointend2 - a 2x1 double[] containing the Cartesian coordinates of the second segment end pointpublic double getDistance(double x1,
                 double y1,
                 double x2,
                 double y2)
getDistance in class WorldObjectx1 - the north/south Cartesian coordinate of the first segment end pointy1 - the east/west Cartesian coordinate of the first segment end pointx2 - the north/south Cartesian coordinate of the second segment end pointy2 - the east/west Cartesian coordinate of the second segment end pointpublic String toString()
toString in class StationaryObjectpublic void setEnds(double[] newEnd1,
           double[] newEnd2)
newEnd1 - new first end point of the wallnewEnd2 - new second end point of the wallpublic void setEnds(Point newEnd1, Point newEnd2)
newEnd1 - new first end point of the wallnewEnd2 - new second end point of the wallpublic void setEnds(double newX1,
           double newY1,
           double newX2,
           double newY2)
newX1 - north/south coordinate of the first new end point of the wallnewY1 - east/west coordinate of the first new end point of the wallnewX2 - north/south coordinate of the second new end point of the wallnewY2 - east/west coordinate of the second new end point of the wallpublic void setEnd1(double[] newEnd)
newEnd - new end point of the wallpublic void setEnd1(Point newEnd)
newEnd - new end point of the wallpublic void setEnd1(double newX,
           double newY)
newX - north/south coordinate of the new end point of the wallnewY - east/west coordinate of the new end point of the wallpublic void setEnd2(double[] newEnd)
newEnd - new end point of the wallpublic void setEnd2(Point newEnd)
newEnd - new end point of the wallpublic void setEnd2(double newX,
           double newY)
newX - north/south coordinate of the new end point of the wallnewY - east/west coordinate of the new end point of the wall