Class: Epic2TcasII
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:17
A TCAS II implementation for the Epic2.
Extends
Constructors
Constructor
new Epic2TcasII(
bus,tfcInstrument,adsb,config):Epic2TcasII
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:48
Constructor.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
tfcInstrument | TrafficInstrument | The traffic instrument which provides traffic contacts for this TCAS. |
adsb | null | Epic2Adsb | The ADS-B system associated with this TCAS, or null if this TCAS does not support ADS-B. |
config | AcasSystemDefinition | An ACAS System configuration |
Returns
Epic2TcasII
Overrides
Properties
adsb
readonlyadsb:null|Epic2Adsb
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:48
The ADS-B system associated with this TCAS, or null if this TCAS does not support ADS-B.
bus
protectedreadonlybus:EventBus
Defined in: sdk/traffic/Tcas.ts:504
The event bus.
Inherited from
intrudersFiltered
protectedintrudersFiltered:Epic2TcasIntruder[] =[]
Defined in: sdk/traffic/Tcas.ts:463
Inherited from
intrudersRA
protectedreadonlyintrudersRA:Set<Epic2TcasIntruder>
Defined in: sdk/traffic/Tcas.ts:465
Inherited from
intrudersSorted
protectedreadonlyintrudersSorted:Epic2TcasIntruder[] =[]
Defined in: sdk/traffic/Tcas.ts:462
Inherited from
lastUpdateRealTime
protectedlastUpdateRealTime:number=0
Defined in: sdk/traffic/Tcas.ts:487
Inherited from
lastUpdateSimTime
protectedlastUpdateSimTime:number=0
Defined in: sdk/traffic/Tcas.ts:486
Inherited from
maxAngleForBearing
readonlymaxAngleForBearing:number
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:36
maxIntruderCount
protectedreadonlymaxIntruderCount:Subscribable<number>
Defined in: sdk/traffic/Tcas.ts:452
Inherited from
minAngleForBearing
readonlyminAngleForBearing:number
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:37
operatingModeSub
protectedreadonlyoperatingModeSub:Subject<TcasOperatingMode>
Defined in: sdk/traffic/Tcas.ts:456
Inherited from
ownAirplane
protectedreadonlyownAirplane:OwnAirplane
Defined in: sdk/traffic/Tcas.ts:460
Inherited from
ownAirplaneSubs
protectedreadonlyownAirplaneSubs:object
Defined in: sdk/traffic/Tcas.ts:474
altitude
altitude:
NumberUnitSubject<Distance,SimpleUnit<Distance>>
groundSpeed
groundSpeed:
NumberUnitSubject<Speed,CompoundUnit<Speed>>
groundTrack
groundTrack:
ConsumerSubject<number>
isOnGround
isOnGround:
ConsumerSubject<boolean>
position
position:
GeoPointSubject
radarAltitude
radarAltitude:
NumberUnitSubject<Distance,SimpleUnit<Distance>>
verticalSpeed
verticalSpeed:
NumberUnitSubject<Speed,CompoundUnit<Speed>>
Inherited from
paSeparationCache
protectedreadonlypaSeparationCache:object
Defined in: sdk/traffic/Tcas.ts:880
horizontal
horizontal:
NumberUnit<Distance,SimpleUnit<Distance>>
vertical
vertical:
NumberUnit<Distance,SimpleUnit<Distance>>
Inherited from
realTimeUpdateFreq
protectedreadonlyrealTimeUpdateFreq:Subscribable<number>
Defined in: sdk/traffic/Tcas.ts:453
Inherited from
resolutionAdvisoryHost
protectedreadonlyresolutionAdvisoryHost:TcasResolutionAdvisoryHostClass
Defined in: sdk/traffic/Tcas.ts:466
Inherited from
sensitivity
protectedreadonlysensitivity:Epic2TcasIISensitivity
Defined in: sdk/traffic/Tcas.ts:458
Inherited from
simTime
protectedreadonlysimTime:ConsumerSubject<number>
Defined in: sdk/traffic/Tcas.ts:484
Inherited from
simTimeUpdateFreq
protectedreadonlysimTimeUpdateFreq:Subscribable<number>
Defined in: sdk/traffic/Tcas.ts:454
Inherited from
tfcInstrument
protectedreadonlytfcInstrument:TrafficInstrument
Defined in: sdk/traffic/Tcas.ts:505
The traffic instrument which provides traffic contacts for this TCAS.
Inherited from
Methods
canCancelProximityAdvisory()
protectedcanCancelProximityAdvisory(simTime,intruder):boolean
Defined in: sdk/traffic/Tcas.ts:1017
Checks whether a proximity advisory can be canceled for an intruder.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | Epic2TcasIntruder | An intruder. |
Returns
boolean
Whether a proximity advisory can be canceled for the intruder.
Inherited from
Tcas.canCancelProximityAdvisory
canCancelResolutionAdvisory()
protectedcanCancelResolutionAdvisory(simTime,intruder):boolean
Defined in: sdk/traffic/Tcas.ts:972
Checks whether a resolution advisory can be canceled for an intruder.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | Epic2TcasIntruder | An intruder. |
Returns
boolean
Whether a resolution advisory can be issued for the intruder.
Inherited from
Tcas.canCancelResolutionAdvisory
canCancelTrafficAdvisory()
protectedcanCancelTrafficAdvisory(simTime,intruder):boolean
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:152
Checks whether a traffic advisory can be canceled for an intruder.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | Epic2TcasIntruder | An intruder. |
Returns
boolean
Whether a traffic advisory can be canceled for the intruder.
Overrides
canIssueProximityAdvisory()
protectedcanIssueProximityAdvisory(simTime,intruder):boolean
Defined in: sdk/traffic/Tcas.ts:1006
Checks whether a proximity advisory can be issued for an intruder.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | Epic2TcasIntruder | An intruder. |
Returns
boolean
Whether a proximity advisory can be issued for the intruder.
Inherited from
Tcas.canIssueProximityAdvisory
canIssueResolutionAdvisory()
protectedcanIssueResolutionAdvisory(simTime,intruder):boolean
Defined in: sdk/traffic/Tcas.ts:958
Checks whether a resolution advisory can be issued for an intruder.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | Epic2TcasIntruder | An intruder. |
Returns
boolean
Whether a resolution advisory can be issued for the intruder.
Inherited from
Tcas.canIssueResolutionAdvisory
canIssueTrafficAdvisory()
protectedcanIssueTrafficAdvisory(simTime,intruder):boolean
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:138
Checks whether a traffic advisory can be issued for an intruder.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | Epic2TcasIntruder | An intruder. |
Returns
boolean
Whether a traffic advisory can be issued for the intruder.
Overrides
createIntruderEntry()
protectedcreateIntruderEntry(contact):Epic2TcasIntruder
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:102
Creates a TCAS intruder entry from a traffic contact.
Parameters
| Parameter | Type | Description |
|---|---|---|
contact | TrafficContact | A traffic contact. |
Returns
Overrides
createSensitivity()
protectedcreateSensitivity():Epic2TcasIISensitivity
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:97
Creates a TCAS sensitivity object.
Returns
A TCAS sensitivity object.
Overrides
doUpdate()
protecteddoUpdate(simTime):void
Defined in: sdk/traffic/Tcas.ts:794
Executes an update.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
Returns
void
Inherited from
filterIntruder()
protectedfilterIntruder(intruder):boolean
Defined in: sdk/traffic/Tcas.ts:850
Filters an intruder.
Parameters
| Parameter | Type | Description |
|---|---|---|
intruder | Epic2TcasIntruder | An intruder. |
Returns
boolean
Whether the intruder should be tracked by this TCAS.
Inherited from
getEventSubscriber()
getEventSubscriber():
EventSubscriber<TcasEvents>
Defined in: sdk/traffic/Tcas.ts:579
Gets an event bus subscriber for TCAS events.
Returns
an event bus subscriber for TCAS events..
Inherited from
getIntruders()
getIntruders(): readonly
TcasIntruder[]
Defined in: sdk/traffic/Tcas.ts:563
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
getOperatingMode()
getOperatingMode():
TcasOperatingMode
Defined in: sdk/traffic/Tcas.ts:547
Gets this system's operating mode.
Returns
This system's operating mode.
Inherited from
getResolutionAdvisoryHost()
getResolutionAdvisoryHost():
TcasResolutionAdvisoryHost
Defined in: sdk/traffic/Tcas.ts:571
Gets this system's resolution advisory host.
Returns
This system's resolution advisory host.
Inherited from
Tcas.getResolutionAdvisoryHost
init()
init():
void
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:53
Initializes this system.
Returns
void
Overrides
intruderComparator()
protectedintruderComparator(a,b):number
Defined in: sdk/traffic/Tcas.ts:661
Sorts two intruders.
Parameters
| Parameter | Type | Description |
|---|---|---|
a | Epic2TcasIntruder | The first intruder. |
b | Epic2TcasIntruder | 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
onOperatingModeChanged()
protectedonOperatingModeChanged(mode):void
Defined in: sdk/traffic/Tcas.ts:637
Responds to changes in this TCAS's operating mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | TcasOperatingMode | The current operating mode. |
Returns
void
Inherited from
setOperatingMode()
setOperatingMode(
mode):void
Defined in: sdk/traffic/Tcas.ts:555
Sets this system's operating mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | TcasOperatingMode | The new operating mode. |
Returns
void
Inherited from
updateFilteredIntruderAlertLevels()
protectedupdateFilteredIntruderAlertLevels(simTime):void
Defined in: sdk/traffic/Tcas.ts:858
Updates the alert levels for all intruders tracked by this system that have not been filtered out.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
Returns
void
Inherited from
Tcas.updateFilteredIntruderAlertLevels
updateIntruderAlertLevel()
protectedupdateIntruderAlertLevel(simTime,intruder):void
Defined in: sdk/traffic/Tcas.ts:890
Updates an intruder's alert level.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
intruder | Epic2TcasIntruder | An intruder. |
Returns
void
Inherited from
updateIntruderArrays()
protectedupdateIntruderArrays():void
Defined in: sdk/traffic/Tcas.ts:823
Updates the arrays of intruders tracked by this system.
Returns
void
Inherited from
updateIntruderPredictions()
protectedupdateIntruderPredictions(simTime):void
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:114
Updates the TCA predictions for all intruders tracked by this system.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
Returns
void
Overrides
Tcas.updateIntruderPredictions
updateResolutionAdvisory()
protectedupdateResolutionAdvisory(simTime):void
Defined in: sdk/traffic/Tcas.ts:1025
Updates this TCAS's resolution advisory.
Parameters
| Parameter | Type | Description |
|---|---|---|
simTime | number | The current sim time, as a UNIX timestamp in milliseconds. |
Returns
void
Inherited from
updateSensitivity()
protectedupdateSensitivity():void
Defined in: workingtitle-instruments-epic2/shared/Traffic/Epic2TcasII.ts:128
Returns
void