Skip to main content

Abstract Class: Tcas<I, S>

Defined in: src/sdk/traffic/Tcas.ts:507

A TCAS-II-like system.

Extended by​

Type Parameters​

Type ParameterDefault type
I extends AbstractTcasIntruderAbstractTcasIntruder
S extends TcasSensitivityTcasSensitivity

Constructors​

Constructor​

new Tcas<I, S>(bus, tfcInstrument, options): Tcas<I, S>

Defined in: src/sdk/traffic/Tcas.ts:573

Creates a new instance of Tcas.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
tfcInstrumentTrafficInstrumentThe traffic instrument which provides traffic contacts for the TCAS.
optionsReadonly<TcasOptions>Options with which to configure the TCAS.

Returns​

Tcas<I, S>

Constructor​

new Tcas<I, S>(bus, tfcInstrument, maxIntruderCount, realTimeUpdateFreq, simTimeUpdateFreq, raOptions?): Tcas<I, S>

Defined in: src/sdk/traffic/Tcas.ts:588

Creates a new instance of Tcas.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
tfcInstrumentTrafficInstrumentThe traffic instrument which provides traffic contacts for the TCAS.
maxIntruderCountnumber | Subscribable<number>The maximum number of intruders tracked at any one time by the TCAS.
realTimeUpdateFreqnumber | Subscribable<number>The maximum update frequency (Hz) in real time.
simTimeUpdateFreqnumber | Subscribable<number>The maximum update frequency (Hz) in sim time.
raOptions?Partial<TcasResolutionAdvisoryOptions>Options to adjust how resolution advisories are calculated.

Returns​

Tcas<I, S>

Deprecated​

Please use the overload that takes a TcasOptions object instead.

Properties​

bus​

protected readonly bus: EventBus

Defined in: src/sdk/traffic/Tcas.ts:598


hasActiveSurveillance​

protected readonly hasActiveSurveillance: Subscribable<boolean>

Defined in: src/sdk/traffic/Tcas.ts:520

Whether active surveillance is available for this TCAS.


intrudersFiltered​

protected intrudersFiltered: I[] = []

Defined in: src/sdk/traffic/Tcas.ts:532


intrudersRA​

protected readonly intrudersRA: Set<I>

Defined in: src/sdk/traffic/Tcas.ts:534


intrudersSorted​

protected readonly intrudersSorted: I[] = []

Defined in: src/sdk/traffic/Tcas.ts:531


lastUpdateRealTime​

protected lastUpdateRealTime: number = 0

Defined in: src/sdk/traffic/Tcas.ts:560


lastUpdateSimTime​

protected lastUpdateSimTime: number = 0

Defined in: src/sdk/traffic/Tcas.ts:559


maxIntruderCount​

protected readonly maxIntruderCount: Subscribable<number>

Defined in: src/sdk/traffic/Tcas.ts:515


operatingModeSub​

protected readonly operatingModeSub: Subject<TcasOperatingMode>

Defined in: src/sdk/traffic/Tcas.ts:525


ownAirplane​

protected readonly ownAirplane: TcasOwnAirplane

Defined in: src/sdk/traffic/Tcas.ts:529


ownAirplaneDataProvider​

protected readonly ownAirplaneDataProvider: TcasOwnAirplaneDataProvider

Defined in: src/sdk/traffic/Tcas.ts:523

A provider of data for this TCAS's own airplane.


ownAirplaneSubs​

protected readonly ownAirplaneSubs: object

Defined in: src/sdk/traffic/Tcas.ts:546

altitude​

altitude: NumberUnitSubject<Distance, SimpleUnit<Distance>>

groundSpeed​

groundSpeed: NumberUnitSubject<Speed, CompoundUnit<Speed>>

groundTrack​

groundTrack: ConsumerSubject<number>

isOnGround​

isOnGround: ConsumerSubject<boolean>

position​

position: GeoPointSubject

pressureAltitude​

pressureAltitude: NumberUnitSubject<Distance, SimpleUnit<Distance>>

radarAltitude​

radarAltitude: NumberUnitSubject<Distance, SimpleUnit<Distance>>

verticalSpeed​

verticalSpeed: NumberUnitSubject<Speed, CompoundUnit<Speed>>

Deprecated​

Please use ownAirplaneDataProvider instead.


paSeparationCache​

protected readonly paSeparationCache: object

Defined in: src/sdk/traffic/Tcas.ts:996

horizontal​

horizontal: NumberUnit<Distance, SimpleUnit<Distance>>

vertical​

vertical: NumberUnit<Distance, SimpleUnit<Distance>>


realTimeUpdateFreq​

protected readonly realTimeUpdateFreq: Subscribable<number>

Defined in: src/sdk/traffic/Tcas.ts:516


resolutionAdvisoryHost​

protected readonly resolutionAdvisoryHost: TcasResolutionAdvisoryHostClass

Defined in: src/sdk/traffic/Tcas.ts:535


sensitivity​

protected readonly sensitivity: S

Defined in: src/sdk/traffic/Tcas.ts:527


simTime​

protected readonly simTime: ConsumerSubject<number>

Defined in: src/sdk/traffic/Tcas.ts:557


simTimeUpdateFreq​

protected readonly simTimeUpdateFreq: Subscribable<number>

Defined in: src/sdk/traffic/Tcas.ts:517


tfcInstrument​

protected readonly tfcInstrument: TrafficInstrument

Defined in: src/sdk/traffic/Tcas.ts:599

Methods​

canCancelProximityAdvisory()​

protected canCancelProximityAdvisory(simTime, intruder): boolean

Defined in: src/sdk/traffic/Tcas.ts:1133

Checks whether a proximity advisory can be canceled for an intruder.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.
intruderIAn intruder.

Returns​

boolean

Whether a proximity advisory can be canceled for the intruder.


canCancelResolutionAdvisory()​

protected canCancelResolutionAdvisory(simTime, intruder): boolean

Defined in: src/sdk/traffic/Tcas.ts:1088

Checks whether a resolution advisory can be canceled for an intruder.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.
intruderIAn intruder.

Returns​

boolean

Whether a resolution advisory can be issued for the intruder.


canCancelTrafficAdvisory()​

protected canCancelTrafficAdvisory(simTime, intruder): boolean

Defined in: src/sdk/traffic/Tcas.ts:1111

Checks whether a traffic advisory can be canceled for an intruder.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.
intruderIAn intruder.

Returns​

boolean

Whether a traffic advisory can be canceled for the intruder.


canIssueProximityAdvisory()​

protected canIssueProximityAdvisory(simTime, intruder): boolean

Defined in: src/sdk/traffic/Tcas.ts:1122

Checks whether a proximity advisory can be issued for an intruder.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.
intruderIAn intruder.

Returns​

boolean

Whether a proximity advisory can be issued for the intruder.


canIssueResolutionAdvisory()​

protected canIssueResolutionAdvisory(simTime, intruder): boolean

Defined in: src/sdk/traffic/Tcas.ts:1074

Checks whether a resolution advisory can be issued for an intruder.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.
intruderIAn intruder.

Returns​

boolean

Whether a resolution advisory can be issued for the intruder.


canIssueTrafficAdvisory()​

protected canIssueTrafficAdvisory(simTime, intruder): boolean

Defined in: src/sdk/traffic/Tcas.ts:1100

Checks whether a traffic advisory can be issued for an intruder.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.
intruderIAn intruder.

Returns​

boolean

Whether a traffic advisory can be issued for the intruder.


createIntruderEntry()​

abstract protected createIntruderEntry(contact): I

Defined in: src/sdk/traffic/Tcas.ts:847

Creates a TCAS intruder entry from a traffic contact.

Parameters​

ParameterTypeDescription
contactTrafficContactA traffic contact.

Returns​

I


createSensitivity()​

abstract protected createSensitivity(): S

Defined in: src/sdk/traffic/Tcas.ts:651

Creates a TCAS sensitivity object.

Returns​

S

A TCAS sensitivity object.


doUpdate()​

protected doUpdate(simTime): void

Defined in: src/sdk/traffic/Tcas.ts:905

Executes an update.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.

Returns​

void


filterIntruder()​

protected filterIntruder(intruder): boolean

Defined in: src/sdk/traffic/Tcas.ts:966

Filters an intruder.

Parameters​

ParameterTypeDescription
intruderIAn intruder.

Returns​

boolean

Whether the intruder should be tracked by this TCAS.


getEventSubscriber()​

getEventSubscriber(): EventSubscriber<TcasEvents>

Defined in: src/sdk/traffic/Tcas.ts:689

Gets an event bus subscriber for TCAS events.

Returns​

EventSubscriber<TcasEvents>

an event bus subscriber for TCAS events..


getIntruders()​

getIntruders(): readonly TcasIntruder[]

Defined in: src/sdk/traffic/Tcas.ts:673

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.


getOperatingMode()​

getOperatingMode(): TcasOperatingMode

Defined in: src/sdk/traffic/Tcas.ts:657

Gets this system's operating mode.

Returns​

TcasOperatingMode

This system's operating mode.


getResolutionAdvisoryHost()​

getResolutionAdvisoryHost(): TcasResolutionAdvisoryHost

Defined in: src/sdk/traffic/Tcas.ts:681

Gets this system's resolution advisory host.

Returns​

TcasResolutionAdvisoryHost

This system's resolution advisory host.


init()​

init(): void

Defined in: src/sdk/traffic/Tcas.ts:696

Initializes this system.

Returns​

void


intruderComparator()​

protected intruderComparator(a, b): number

Defined in: src/sdk/traffic/Tcas.ts:772

Sorts two intruders.

Parameters​

ParameterTypeDescription
aIThe first intruder.
bIThe 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.


onOperatingModeChanged()​

protected onOperatingModeChanged(mode): void

Defined in: src/sdk/traffic/Tcas.ts:748

Responds to changes in this TCAS's operating mode.

Parameters​

ParameterTypeDescription
modeTcasOperatingModeThe current operating mode.

Returns​

void


setOperatingMode()​

setOperatingMode(mode): void

Defined in: src/sdk/traffic/Tcas.ts:665

Sets this system's operating mode.

Parameters​

ParameterTypeDescription
modeTcasOperatingModeThe new operating mode.

Returns​

void


updateFilteredIntruderAlertLevels()​

protected updateFilteredIntruderAlertLevels(simTime): void

Defined in: src/sdk/traffic/Tcas.ts:974

Updates the alert levels for all intruders tracked by this system that have not been filtered out.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.

Returns​

void


updateIntruderAlertLevel()​

protected updateIntruderAlertLevel(simTime, intruder): void

Defined in: src/sdk/traffic/Tcas.ts:1006

Updates an intruder's alert level.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.
intruderIAn intruder.

Returns​

void


updateIntruderArrays()​

protected updateIntruderArrays(): void

Defined in: src/sdk/traffic/Tcas.ts:934

Updates the arrays of intruders tracked by this system.

Returns​

void


updateIntruderPredictions()​

protected updateIntruderPredictions(simTime): void

Defined in: src/sdk/traffic/Tcas.ts:919

Updates the TCA predictions for all intruders tracked by this system.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.

Returns​

void


updateResolutionAdvisory()​

protected updateResolutionAdvisory(simTime): void

Defined in: src/sdk/traffic/Tcas.ts:1141

Updates this TCAS's resolution advisory.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a UNIX timestamp in milliseconds.

Returns​

void


updateSensitivity()​

abstract protected updateSensitivity(): void

Defined in: src/sdk/traffic/Tcas.ts:913

Returns​

void