|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.aircraft.AircraftEventBus
public class AircraftEventBus
AircraftEventBus is a wrapper that allows certain actions to be called on an aircraft without granting access to most aircraft information.See the source: AircraftEventBus.java
| Field Summary | |
|---|---|
private Aircraft |
aircraft
|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
AircraftEventBus(Aircraft ac)
Construct wrapper enabling protected access to aircraft for events. |
|
| Method Summary | |
|---|---|
LocalAtm |
calculateLocalAtm(Position pos)
Calculates the atmospheric conditions at this position. |
LocalWind |
calculateLocalWind(Position pos)
Calculates the wind at this position. |
void |
changeFlyingStatusIfValid(FlyingStatus fs)
Changes flying status of aircraft to given status if change is valid. |
SimulationTime |
currentTime()
Returns the current simulation time. |
void |
fireEndOfRouteEvent(Route route)
|
void |
fireFlyingStatusChangeEvent(FlyingStatus oldFlyingStatus,
FlyingStatus newFlyingStatus)
Sends a flying status change event to all the AircraftEventListeners registered for the type of event. |
void |
fireHeadingCaptureEvent(TrueHeading capturedHdg)
|
void |
fireHeadingChangeEvent(TrueHeading desiredHdg)
|
void |
fireIntialTaxiStartEvent()
|
void |
fireOverRouteNodeEvent(GroundNode routeNode)
|
void |
fireOverRouteNodeEvent(RouteNode routeNode)
|
void |
firePassedOuterMarkerEvent()
|
void |
fireRouteCapturedEvent(Route route)
|
void |
fireSimulationEvent(SimEvent event)
Adds the given event to the SimEventMgr for the Scenario this aircraft is in. |
void |
fireTakeoffStartEvent()
|
void |
fireTouchDownEvent()
Sends a touchdown event to AircraftEventListeners. |
MonitorType |
getAircraftMonitor()
Returns the instrument(s) this aircraft uses to monitor other aircraft. |
Position |
getEstimatedPosition()
Returns the position of the aircraft, as estimated by the navigator. |
Altitude |
getExpeditedDescentCapture(Position pos)
Method called to determine the altitude at which the crossing point's latitude/longitude can be captured with an expedited descent. |
Route |
getFiledRoute()
Returns filed route |
AltitudeRate |
getMaxClimbRate()
Returns the maximum climb rate of the aircraft when expedited. |
java.lang.String |
getName()
Returns aircraft ID as a String, or null if no associated aircraft. |
Altitude |
groundTransitionOffset()
Returns an altitude offset if this aircraft has a ground arrival route, or null if it doesn't. |
TrackMgr |
initializeTrackMgr()
Creates a TrackManager that watches the current aircraft and stores its previous state in the form of positions, velocities, and times. |
boolean |
isGroundAutoTakeoff()
|
boolean |
isGroundMovementAuto()
|
boolean |
isInGroup()
|
void |
landAircraft(Position position)
Switch from current dynamics to GroundDynamics. |
void |
prompt(java.lang.String promptString)
Send a command prompt to the Aircraft (Sim-Pilot) after a short delay -- either 1 second for a piloted aircraft or several seconds for a non-piloted aircraft. |
void |
terminateFlight()
Terminates the flight associated with this aircraft. |
java.lang.String |
toString()
Returns information for this aircraft event bus as a String, in the format: |
TrackMgr |
updateTrack()
Updates the track monitoring the aircraft this bus represents if one exists and returns its TrackMgr. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private final Aircraft aircraft
| Constructor Detail |
|---|
public AircraftEventBus(Aircraft ac)
NOTE: This constructor allows a null aircraft value, so that the
AircraftEventBus may be distributed before creating the aircraft.
However, if an attempt to access the events occurs before the
aircraft is set using setAircraft(), that method will throw a
NullPointerException.)
ac - The aircraft to be wrapped.| Method Detail |
|---|
public Route getFiledRoute()
public void changeFlyingStatusIfValid(FlyingStatus fs)
public void fireFlyingStatusChangeEvent(FlyingStatus oldFlyingStatus,
FlyingStatus newFlyingStatus)
public void fireEndOfRouteEvent(Route route)
public void fireRouteCapturedEvent(Route route)
public void fireHeadingChangeEvent(TrueHeading desiredHdg)
desiredHdg - The heading that the aircraft will change to.public void fireHeadingCaptureEvent(TrueHeading capturedHdg)
capturedHdg - The heading that the aircraft captured.public void firePassedOuterMarkerEvent()
public void fireOverRouteNodeEvent(GroundNode routeNode)
public void fireOverRouteNodeEvent(RouteNode routeNode)
public void fireIntialTaxiStartEvent()
public void fireTouchDownEvent()
public void fireTakeoffStartEvent()
public void landAircraft(Position position)
public MonitorType getAircraftMonitor()
throws UnableToComplyException
UnableToComplyExceptionpublic Position getEstimatedPosition()
getEstimatedPosition in interface Route.DescentCapturePredictorpublic Altitude getExpeditedDescentCapture(Position pos)
getExpeditedDescentCapture in interface Route.DescentCapturePredictorUnableToComplyExceptionpublic AltitudeRate getMaxClimbRate()
public void prompt(java.lang.String promptString)
promptString - the message to send to the pilot.public Altitude groundTransitionOffset()
public java.lang.String getName()
public java.lang.String toString()
"AircraftEventBus[AAL123]".
toString in class java.lang.Objectpublic LocalWind calculateLocalWind(Position pos)
pos - the Position to check.
public LocalAtm calculateLocalAtm(Position pos)
pos - the Position to check.
public SimulationTime currentTime()
public void fireSimulationEvent(SimEvent event)
event - The SimEvent to add.public void terminateFlight()
public boolean isGroundMovementAuto()
public TrackMgr initializeTrackMgr()
public TrackMgr updateTrack()
public boolean isGroundAutoTakeoff()
public boolean isInGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||