|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.nas.fix.Fix
faa.tg.ground.GroundFix
public class GroundFix
GroundFix represents a point on the ground and is used for navigation in the ground-based portion of the simulator. It extends faa.tg.nas.fix.Fix and can be used anywhere a normal Fix can be used. What separates GroundFix from Fix is the knowledge of what other GroundFixes it is connected to. GroundFix keeps track of all other GroundFixes it connects to--these connections are one-way however and it is possible for a GroundFix to have an outgoing connection but for the other GroundFix to not be connected back to the originator.
| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID. |
private GroundFixType |
fixType
|
private java.util.Map<java.lang.String,GroundFixConnection> |
mConnections
|
private java.util.List<GroundFixState> |
mStates
|
private java.lang.String |
mType
|
(package private) static long |
serialVersionUID
|
| Fields inherited from class faa.tg.nas.fix.Fix |
|---|
magDec |
| Constructor Summary | |
|---|---|
GroundFix(java.lang.String name,
Position position)
Constructs a GroundFix with the specified name and position and a type of "Unknown". |
|
GroundFix(java.lang.String name,
Position position,
GroundFixType type)
Constructs a GroundFix with the specified name, position, and type. |
|
GroundFix(java.lang.String name,
Position position,
java.lang.String type)
Constructs a GroundFix with the specified name, position, and type. |
|
| Method Summary | |
|---|---|
protected void |
activate()
|
private void |
addConnection(GroundFixConnection connection,
GroundFix fix)
Adds a GroundFixConnection to the GroundFix's list of connections. |
Point |
calculatePullPoint(Point p)
Approximates the closest point in a Targetable to the point given as a parameter. |
void |
close()
Closes the GroundFixStates this contains for pathfinding. |
GroundFixConnection |
connectToFix(GroundFix aFix,
Locale locale)
|
GroundFixConnection |
connectToFix(GroundFix aFix,
Position aCtlOne,
Position aCtlTwo,
Locale locale)
|
protected void |
deactivate()
|
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. |
GroundFixConnection |
getConnection(GroundFix fix)
Returns the connection this GroundFix has to the specified GroundFix, if a connection exists. |
java.util.Collection<GroundFixConnection> |
getConnections()
Gets an collection of the GroundFixConnections to which this GroundNode is connected |
protected Point |
getLocation()
|
ConnectionFilter |
getStartingFilter(TurnDirection dir)
Returns appropriate ConnectionFilter to use when this Pathable is used as the start point in path finding. |
java.util.Collection<GroundFixState> |
getStartStates()
Returns all valid GroundFixStates a object could have and be considered "on" this Pathable. |
GroundFixType |
getType()
Returns the type of this GroundFix. |
boolean |
isConnectedTo(GroundFix aNode)
Returns whether this GroundFix is connected to the specified GroundFix. |
java.util.Iterator<GroundFixState> |
iterator()
For Iterable |
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. |
void |
open()
Opens the GroundFixStates this contains for pathfinding. |
void |
prependTo(java.util.ArrayDeque<GroundFixState> deque)
Prepends (some of) this Pathable's GroundFixStates to a deque. |
private void |
registerEntranceConnection(GroundFixConnection gfc)
Checks if this will create a non-exitable state. |
private void |
registerExitingConnection(GroundFixConnection gfc)
|
protected void |
removeConnection(GroundFix fix)
|
protected void |
removeState(GroundFixState gfs)
|
int |
size()
Finds the number of GroundFixStates this Pathable has sequentially. |
(package private) GroundFix |
split(Manager<GroundFix> manager)
|
java.lang.String |
toString()
Get a String representation of this object |
| Methods inherited from class faa.tg.nas.fix.Fix |
|---|
clone, equals, getIcaoCode, getMagneticDeclination, getName, getPosition, getPublishedHoldIfApplicable, getVorNavAid, hashCode, setIcaoCode, setPublishedHold, toDraText, toDraText |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface faa.tg.scenario.manager.ManagedObject |
|---|
getName |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private transient java.util.Map<java.lang.String,GroundFixConnection> mConnections
private transient java.util.List<GroundFixState> mStates
private java.lang.String mType
private transient GroundFixType fixType
| Constructor Detail |
|---|
public GroundFix(java.lang.String name,
Position position)
name - the nameposition - the position
public GroundFix(java.lang.String name,
Position position,
java.lang.String type)
name - the nameposition - the positiontype - the type
public GroundFix(java.lang.String name,
Position position,
GroundFixType type)
name - the nameposition - the positiontype - the type| Method Detail |
|---|
public GroundFixType getType()
public GroundFixConnection connectToFix(GroundFix aFix,
Locale locale)
public GroundFixConnection connectToFix(GroundFix aFix,
Position aCtlOne,
Position aCtlTwo,
Locale locale)
protected void activate()
protected void deactivate()
private void registerEntranceConnection(GroundFixConnection gfc)
gfc - private void registerExitingConnection(GroundFixConnection gfc)
private void addConnection(GroundFixConnection connection,
GroundFix fix)
connection - the GroundFixConnection to add to this GroundFixpublic GroundFixConnection getConnection(GroundFix fix)
fix - the GroundFix you want the connection to
public boolean isConnectedTo(GroundFix aNode)
aNode - the GroundFix you wish to see if there is a connection for
public java.util.Collection<GroundFixConnection> getConnections()
public java.lang.String toString()
toString in class Fixpublic java.util.Iterator<GroundFixState> iterator()
iterator in interface java.lang.Iterable<GroundFixState>protected void removeState(GroundFixState gfs)
protected void removeConnection(GroundFix fix)
public void prependTo(java.util.ArrayDeque<GroundFixState> deque)
Pathable
prependTo in interface Pathabledeque - the deque to append to.public Pathable findRestriction(GroundFixState state)
Pathable
findRestriction in interface Pathablepublic void close()
Closeable
close in interface Closeablepublic void open()
Closeable
open in interface Closeablepublic java.util.Collection<GroundFixState> getStartStates()
Pathable
getStartStates in interface Pathableprotected Point getLocation()
public Point calculatePullPoint(Point p)
Targetable
calculatePullPoint in interface Targetablep - the point to check against.
public int size()
Pathable
size in interface Pathablepublic ConnectionFilter getStartingFilter(TurnDirection dir)
Pathable
getStartingFilter in interface Pathabledir - TurnDirection that the filter restricts exits
to. Use UNKNOWN for no restriction.
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.GroundFix split(Manager<GroundFix> manager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||