Class: WT21TCAS
A TCAS II implementation for the WT21.
Hierarchy
Tcas
<DefaultTcasIntruder
,TcasIISensitivity
>↳
WT21TCAS
Constructors
constructor
• new WT21TCAS(bus
, tfcInstrument
): WT21TCAS
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
tfcInstrument | TrafficInstrument | The traffic instrument which provides traffic contacts for this TCAS. |
Returns
Overrides
Tcas\<DefaultTcasIntruder, TcasIISensitivity\>.constructor
Defined in
workingtitle-instruments-wt21/shared/Traffic/WT21TCAS.ts:30
Properties
bus
• Protected
Readonly
bus: EventBus
The event bus.
Inherited from
Tcas.bus
Defined in
sdk/traffic/Tcas.ts:504
intrudersFiltered
• Protected
intrudersFiltered: DefaultTcasIntruder
[] = []
Inherited from
Tcas.intrudersFiltered
Defined in
sdk/traffic/Tcas.ts:463
intrudersRA
• Protected
Readonly
intrudersRA: Set
<DefaultTcasIntruder
>
Inherited from
Tcas.intrudersRA
Defined in
sdk/traffic/Tcas.ts:465
intrudersSorted
• Protected
Readonly
intrudersSorted: DefaultTcasIntruder
[] = []
Inherited from
Tcas.intrudersSorted
Defined in
sdk/traffic/Tcas.ts:462
lastUpdateRealTime
• Protected
lastUpdateRealTime: number
= 0
Inherited from
Tcas.lastUpdateRealTime
Defined in
sdk/traffic/Tcas.ts:487
lastUpdateSimTime
• Protected
lastUpdateSimTime: number
= 0
Inherited from
Tcas.lastUpdateSimTime
Defined in
sdk/traffic/Tcas.ts:486
maxIntruderCount
• Protected
Readonly
maxIntruderCount: Subscribable
<number
>
Inherited from
Tcas.maxIntruderCount
Defined in
sdk/traffic/Tcas.ts:452
operatingModeSub
• Protected
Readonly
operatingModeSub: Subject
<TcasOperatingMode
>
Inherited from
Tcas.operatingModeSub
Defined in
sdk/traffic/Tcas.ts:456
ownAirplane
• Protected
Readonly
ownAirplane: OwnAirplane
Inherited from
Tcas.ownAirplane
Defined in
sdk/traffic/Tcas.ts:460
ownAirplaneSubs
• Protected
Readonly
ownAirplaneSubs: Object
Type declaration
Name | Type |
---|---|
altitude | NumberUnitSubject <Distance , SimpleUnit <Distance >> |
groundSpeed | NumberUnitSubject <Speed , CompoundUnit <Speed >> |
groundTrack | ConsumerSubject <number > |
isOnGround | ConsumerSubject <boolean > |
position | GeoPointSubject |
radarAltitude | NumberUnitSubject <Distance , SimpleUnit <Distance >> |
verticalSpeed | NumberUnitSubject <Speed , CompoundUnit <Speed >> |
Inherited from
Tcas.ownAirplaneSubs
Defined in
sdk/traffic/Tcas.ts:474
paSeparationCache
• Protected
Readonly
paSeparationCache: Object
Type declaration
Name | Type |
---|---|
horizontal | NumberUnit <Distance , SimpleUnit <Distance >> |
vertical | NumberUnit <Distance , SimpleUnit <Distance >> |
Inherited from
Tcas.paSeparationCache
Defined in
sdk/traffic/Tcas.ts:880
realTimeUpdateFreq
• Protected
Readonly
realTimeUpdateFreq: Subscribable
<number
>
Inherited from
Tcas.realTimeUpdateFreq
Defined in
sdk/traffic/Tcas.ts:453
resolutionAdvisoryHost
• Protected
Readonly
resolutionAdvisoryHost: TcasResolutionAdvisoryHostClass
Inherited from
Tcas.resolutionAdvisoryHost
Defined in
sdk/traffic/Tcas.ts:466
sensitivity
• Protected
Readonly
sensitivity: TcasIISensitivity
Inherited from
Tcas.sensitivity
Defined in
sdk/traffic/Tcas.ts:458
simTime
• Protected
Readonly
simTime: ConsumerSubject
<number
>
Inherited from
Tcas.simTime
Defined in
sdk/traffic/Tcas.ts:484
simTimeUpdateFreq
• Protected
Readonly
simTimeUpdateFreq: Subscribable
<number
>
Inherited from
Tcas.simTimeUpdateFreq
Defined in
sdk/traffic/Tcas.ts:454
tfcInstrument
• Protected
Readonly
tfcInstrument: TrafficInstrument
The traffic instrument which provides traffic contacts for this TCAS.
Inherited from
Tcas.tfcInstrument
Defined in
sdk/traffic/Tcas.ts:505
Methods
canCancelProximityAdvisory
▸ canCancelProximityAdvisory(simTime
, intruder
): boolean
Checks whether a proximity advisory can be canceled for an intruder.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | DefaultTcasIntruder | An intruder. |
Returns
boolean
Whether a proximity advisory can be canceled for the intruder.
Inherited from
Tcas.canCancelProximityAdvisory
Defined in
sdk/traffic/Tcas.ts:1017
canCancelResolutionAdvisory
▸ canCancelResolutionAdvisory(simTime
, intruder
): boolean
Checks whether a resolution advisory can be canceled for an intruder.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | DefaultTcasIntruder | An intruder. |
Returns
boolean
Whether a resolution advisory can be issued for the intruder.
Inherited from
Tcas.canCancelResolutionAdvisory
Defined in
sdk/traffic/Tcas.ts:972
canCancelTrafficAdvisory
▸ canCancelTrafficAdvisory(simTime
, intruder
): boolean
Checks whether a traffic advisory can be canceled for an intruder.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | DefaultTcasIntruder | An intruder. |
Returns
boolean
Whether a traffic advisory can be canceled for the intruder.
Inherited from
Tcas.canCancelTrafficAdvisory
Defined in
sdk/traffic/Tcas.ts:995
canIssueProximityAdvisory
▸ canIssueProximityAdvisory(simTime
, intruder
): boolean
Checks whether a proximity advisory can be issued for an intruder.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | DefaultTcasIntruder | An intruder. |
Returns
boolean
Whether a proximity advisory can be issued for the intruder.
Inherited from
Tcas.canIssueProximityAdvisory
Defined in
sdk/traffic/Tcas.ts:1006
canIssueResolutionAdvisory
▸ canIssueResolutionAdvisory(simTime
, intruder
): boolean
Checks whether a resolution advisory can be issued for an intruder.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | DefaultTcasIntruder | An intruder. |
Returns
boolean
Whether a resolution advisory can be issued for the intruder.
Inherited from
Tcas.canIssueResolutionAdvisory
Defined in
sdk/traffic/Tcas.ts:958
canIssueTrafficAdvisory
▸ canIssueTrafficAdvisory(simTime
, intruder
): boolean
Checks whether a traffic advisory can be issued for an intruder.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | DefaultTcasIntruder | An intruder. |
Returns
boolean
Whether a traffic advisory can be issued for the intruder.
Inherited from
Tcas.canIssueTrafficAdvisory
Defined in
sdk/traffic/Tcas.ts:984
createIntruderEntry
▸ createIntruderEntry(contact
): DefaultTcasIntruder
Parameters
Name | Type |
---|---|
contact | TrafficContact |
Returns
DefaultTcasIntruder
Inherit Doc
Overrides
Tcas.createIntruderEntry
Defined in
workingtitle-instruments-wt21/shared/Traffic/WT21TCAS.ts:69
createSensitivity
▸ createSensitivity(): TcasIISensitivity
Returns
TcasIISensitivity
Inherit Doc
Overrides
Tcas.createSensitivity
Defined in
workingtitle-instruments-wt21/shared/Traffic/WT21TCAS.ts:64
doUpdate
▸ doUpdate(simTime
): void
Executes an update.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
Returns
void
Inherited from
Tcas.doUpdate
Defined in
sdk/traffic/Tcas.ts:794
filterIntruder
▸ filterIntruder(intruder
): boolean
Filters an intruder.
Parameters
Name | Type | Description |
---|---|---|
intruder | DefaultTcasIntruder | An intruder. |
Returns
boolean
Whether the intruder should be tracked by this TCAS.
Inherited from
Tcas.filterIntruder
Defined in
sdk/traffic/Tcas.ts:850
getEventSubscriber
▸ getEventSubscriber(): EventSubscriber
<TcasEvents
>
Gets an event bus subscriber for TCAS events.
Returns
EventSubscriber
<TcasEvents
>
an event bus subscriber for TCAS events..
Inherited from
Tcas.getEventSubscriber
Defined in
sdk/traffic/Tcas.ts:579
getIntruders
▸ getIntruders(): readonly TcasIntruder
[]
Gets an array of all currently tracked intruders. The intruders are sorted in order of decreasing threat.
Returns
readonly TcasIntruder
[]
an array of all currently tracked intruders.
Inherited from
Tcas.getIntruders
Defined in
sdk/traffic/Tcas.ts:563
getOperatingMode
▸ getOperatingMode(): TcasOperatingMode
Gets this system's operating mode.
Returns
TcasOperatingMode
This system's operating mode.
Inherited from
Tcas.getOperatingMode
Defined in
sdk/traffic/Tcas.ts:547
getResolutionAdvisoryHost
▸ getResolutionAdvisoryHost(): TcasResolutionAdvisoryHost
Gets this system's resolution advisory host.
Returns
TcasResolutionAdvisoryHost
This system's resolution advisory host.
Inherited from
Tcas.getResolutionAdvisoryHost
Defined in
sdk/traffic/Tcas.ts:571
init
▸ init(): void
Returns
void
Inherit Doc
Overrides
Tcas.init
Defined in
workingtitle-instruments-wt21/shared/Traffic/WT21TCAS.ts:35
intruderComparator
▸ intruderComparator(a
, b
): number
Sorts two intruders.
Parameters
Name | Type | Description |
---|---|---|
a | DefaultTcasIntruder | The first intruder. |
b | DefaultTcasIntruder | The second intruder. |
Returns
number
A negative number if a
is to be sorted before b
, a positive number if b
is to be sorted before a
,
and zero if the two are equal.
Inherited from
Tcas.intruderComparator
Defined in
sdk/traffic/Tcas.ts:661
onOperatingModeChanged
▸ onOperatingModeChanged(mode
): void
Responds to changes in this TCAS's operating mode.
Parameters
Name | Type | Description |
---|---|---|
mode | TcasOperatingMode | The current operating mode. |
Returns
void
Inherited from
Tcas.onOperatingModeChanged
Defined in
sdk/traffic/Tcas.ts:637
setOperatingMode
▸ setOperatingMode(mode
): void
Sets this system's operating mode.
Parameters
Name | Type | Description |
---|---|---|
mode | TcasOperatingMode | The new operating mode. |
Returns
void
Inherited from
Tcas.setOperatingMode
Defined in
sdk/traffic/Tcas.ts:555
updateFilteredIntruderAlertLevels
▸ updateFilteredIntruderAlertLevels(simTime
): void
Updates the alert levels for all intruders tracked by this system that have not been filtered out.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
Returns
void
Inherited from
Tcas.updateFilteredIntruderAlertLevels
Defined in
sdk/traffic/Tcas.ts:858
updateIntruderAlertLevel
▸ updateIntruderAlertLevel(simTime
, intruder
): void
Updates an intruder's alert level.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | DefaultTcasIntruder | An intruder. |
Returns
void
Inherited from
Tcas.updateIntruderAlertLevel
Defined in
sdk/traffic/Tcas.ts:890
updateIntruderArrays
▸ updateIntruderArrays(): void
Updates the arrays of intruders tracked by this system.
Returns
void
Inherited from
Tcas.updateIntruderArrays
Defined in
sdk/traffic/Tcas.ts:823
updateIntruderPredictions
▸ updateIntruderPredictions(simTime
): void
Updates the TCA predictions for all intruders tracked by this system.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
Returns
void
Inherited from
Tcas.updateIntruderPredictions
Defined in
sdk/traffic/Tcas.ts:808
updateResolutionAdvisory
▸ updateResolutionAdvisory(simTime
): void
Updates this TCAS's resolution advisory.
Parameters
Name | Type | Description |
---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
Returns
void
Inherited from
Tcas.updateResolutionAdvisory
Defined in
sdk/traffic/Tcas.ts:1025
updateSensitivity
▸ updateSensitivity(): void
Returns
void
Inherit Doc
Overrides
Tcas.updateSensitivity
Defined in
workingtitle-instruments-wt21/shared/Traffic/WT21TCAS.ts:74