|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.ground.AbstractStateRoute
public abstract class AbstractStateRoute
See the source: AbstractStateRoute.java
| Field Summary | |
|---|---|
private java.lang.String |
name
The name of the route. |
private java.util.ArrayDeque<GroundFixState> |
route
|
| Fields inherited from interface faa.tg.ground.Pathable |
|---|
CVS_VERSION_ID |
| Constructor Summary | |
|---|---|
AbstractStateRoute(java.lang.String name,
java.util.ArrayDeque<GroundFixState> route)
|
|
| Method Summary | |
|---|---|
protected void |
addAllTo(GroundPath groute)
|
double |
binarySearch(Point p)
|
Distance |
calculateArcLength(double start,
double end)
|
Point |
calculatePullPoint(Point p)
Approximates the closest point in a Targetable to the point given as a parameter. |
Distance |
calculateRemainingArcLength(double start)
|
boolean |
contains(GroundFixState state)
|
protected boolean |
endsWith(TurnDirection dir)
|
Point |
findClosestPoint(Point p)
|
double |
findClosestValue(Point p)
|
java.util.Set<java.lang.Double> |
findIntersections(LineSegment seg,
double start)
|
Pathable |
findRestriction(GroundFixState state)
Given the last fix on a partially compiled route with this as the next way point, finds the (potentially) truncated Pathable that can be smoothly added to the route. |
protected abstract java.util.List<GroundFixConnection> |
getConnections()
|
Point |
getEndingPoint()
|
GroundFixState |
getLast()
|
abstract Distance |
getLength()
|
protected Distance |
getModifiedLength()
NOT THREAD SAFE! |
java.lang.String |
getName()
Represents a unique instance of a class: objects should either be the only object of a class with that name, or should replace obsolete objects of that name. |
Point |
getPoint(double t)
|
PolygonalPath |
getPolygonalPath()
|
ConnectionFilter |
getStartingFilter(TurnDirection dir)
Returns appropriate ConnectionFilter to use when this Pathable is used as the start point in path finding. |
Point |
getStartingPoint()
|
java.util.ArrayDeque<GroundFixState> |
getStartStates()
Returns all valid GroundFixStates a object could have and be considered "on" this Pathable. |
java.util.Iterator<GroundFixState> |
iterator()
|
java.util.Collection<Node> |
makeRootNodes(Pathable goal,
Targetable next)
Creates all possible starting Nodes necessary to use this Pathable as a starting point for path finding. |
double |
maximum()
|
double |
minimum()
|
void |
prependTo(java.util.ArrayDeque<GroundFixState> deque)
Prepends (some of) this Pathable's GroundFixStates to a deque. |
double |
projectAhead(Distance distance,
double start)
|
Pathable |
relocate(Point p)
|
protected void |
severConnections()
|
protected StateRoute |
shortenBy(int i)
|
int |
size()
Finds the number of GroundFixStates this Pathable has sequentially. |
protected boolean |
startsWith(TurnDirection dir)
|
java.lang.String |
toString()
|
boolean |
validateParameter(double t)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final java.util.ArrayDeque<GroundFixState> route
private final java.lang.String name
| Constructor Detail |
|---|
AbstractStateRoute(java.lang.String name,
java.util.ArrayDeque<GroundFixState> route)
| Method Detail |
|---|
public Pathable findRestriction(GroundFixState state)
Pathable
findRestriction in interface Pathablepublic void prependTo(java.util.ArrayDeque<GroundFixState> deque)
Pathable
prependTo in interface Pathabledeque - the deque to append to.protected StateRoute shortenBy(int i)
protected void addAllTo(GroundPath groute)
throws PathNotFoundException
PathNotFoundExceptionpublic java.util.ArrayDeque<GroundFixState> getStartStates()
Pathable
getStartStates in interface Pathablepublic int size()
Pathable
size in interface Pathablepublic java.lang.String getName()
ManagedObject
getName in interface ManagedObjectpublic final boolean contains(GroundFixState state)
public GroundFixState getLast()
protected void severConnections()
protected boolean endsWith(TurnDirection dir)
protected boolean startsWith(TurnDirection dir)
public double binarySearch(Point p)
public Point calculatePullPoint(Point p)
Targetable
calculatePullPoint in interface Targetablep - the point to check against.
public double maximum()
maximum in interface ParameterizedCurvepublic double minimum()
minimum in interface ParameterizedCurvepublic java.util.Iterator<GroundFixState> iterator()
iterator in interface java.lang.Iterable<GroundFixState>public ConnectionFilter getStartingFilter(TurnDirection dir)
Pathable
getStartingFilter in interface Pathabledir - TurnDirection that the filter restricts exits
to. Use UNKNOWN for no restriction.
public java.lang.String toString()
toString in class java.lang.Object
public java.util.Collection<Node> makeRootNodes(Pathable goal,
Targetable next)
throws PathNotFoundException
Pathable
makeRootNodes in interface Pathablegoal - The ultimate goal of the path finding.next - the next Targetable traveled to.
PathNotFoundException - if this has no exit states.public Pathable relocate(Point p)
protected Distance getModifiedLength()
protected abstract java.util.List<GroundFixConnection> getConnections()
public abstract Distance getLength()
getLength in interface ParameterizedCurve
public Distance calculateArcLength(double start,
double end)
calculateArcLength in interface ParameterizedCurve
public double projectAhead(Distance distance,
double start)
projectAhead in interface ParameterizedCurvepublic Distance calculateRemainingArcLength(double start)
calculateRemainingArcLength in interface ParameterizedCurvepublic Point getStartingPoint()
getStartingPoint in interface ParameterizedCurvepublic Point getEndingPoint()
getEndingPoint in interface ParameterizedCurvepublic PolygonalPath getPolygonalPath()
getPolygonalPath in interface ParameterizedCurvepublic double findClosestValue(Point p)
findClosestValue in interface ParameterizedCurvepublic Point findClosestPoint(Point p)
findClosestPoint in interface ParameterizedCurve
public java.util.Set<java.lang.Double> findIntersections(LineSegment seg,
double start)
findIntersections in interface ParameterizedCurvepublic Point getPoint(double t)
getPoint in interface ParameterizedCurvepublic boolean validateParameter(double t)
validateParameter in interface ParameterizedCurve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||