Skip to main content

Class: Tcas<I, S>

A TCAS-II-like system.

Type parameters

NameType
Iextends AbstractTcasIntruder = AbstractTcasIntruder
Sextends TcasSensitivity = TcasSensitivity

Constructors

constructor

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

Constructor.

Type parameters

NameType
Iextends AbstractTcasIntruder = AbstractTcasIntruder
Sextends TcasSensitivity<TcasIntruder> = TcasSensitivity<TcasIntruder>

Parameters

NameTypeDescription
busEventBusThe event bus.
tfcInstrumentTrafficInstrumentThe traffic instrument which provides traffic contacts for this TCAS.
maxIntruderCountnumber | Subscribable<number>The maximum number of intruders tracked at any one time by this 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>

Defined in

src/sdk/traffic/Tcas.ts:503

Properties

bus

Protected Readonly bus: EventBus

The event bus.

Defined in

src/sdk/traffic/Tcas.ts:504


intrudersFiltered

Protected intrudersFiltered: I[] = []

Defined in

src/sdk/traffic/Tcas.ts:463


intrudersRA

Protected Readonly intrudersRA: Set<I>

Defined in

src/sdk/traffic/Tcas.ts:465


intrudersSorted

Protected Readonly intrudersSorted: I[] = []

Defined in

src/sdk/traffic/Tcas.ts:462


lastUpdateRealTime

Protected lastUpdateRealTime: number = 0

Defined in

src/sdk/traffic/Tcas.ts:487


lastUpdateSimTime

Protected lastUpdateSimTime: number = 0

Defined in

src/sdk/traffic/Tcas.ts:486


maxIntruderCount

Protected Readonly maxIntruderCount: Subscribable<number>

Defined in

src/sdk/traffic/Tcas.ts:452


operatingModeSub

Protected Readonly operatingModeSub: Subject<TcasOperatingMode>

Defined in

src/sdk/traffic/Tcas.ts:456


ownAirplane

Protected Readonly ownAirplane: OwnAirplane

Defined in

src/sdk/traffic/Tcas.ts:460


ownAirplaneSubs

Protected Readonly ownAirplaneSubs: Object

Type declaration

NameType
altitudeNumberUnitSubject<Distance, SimpleUnit<Distance>>
groundSpeedNumberUnitSubject<Speed, CompoundUnit<Speed>>
groundTrackConsumerSubject<number>
isOnGroundConsumerSubject<boolean>
positionGeoPointSubject
radarAltitudeNumberUnitSubject<Distance, SimpleUnit<Distance>>
verticalSpeedNumberUnitSubject<Speed, CompoundUnit<Speed>>

Defined in

src/sdk/traffic/Tcas.ts:474


paSeparationCache

Protected Readonly paSeparationCache: Object

Type declaration

NameType
horizontalNumberUnit<Distance, SimpleUnit<Distance>>
verticalNumberUnit<Distance, SimpleUnit<Distance>>

Defined in

src/sdk/traffic/Tcas.ts:880


realTimeUpdateFreq

Protected Readonly realTimeUpdateFreq: Subscribable<number>

Defined in

src/sdk/traffic/Tcas.ts:453


resolutionAdvisoryHost

Protected Readonly resolutionAdvisoryHost: TcasResolutionAdvisoryHostClass

Defined in

src/sdk/traffic/Tcas.ts:466


sensitivity

Protected Readonly sensitivity: S

Defined in

src/sdk/traffic/Tcas.ts:458


simTime

Protected Readonly simTime: ConsumerSubject<number>

Defined in

src/sdk/traffic/Tcas.ts:484


simTimeUpdateFreq

Protected Readonly simTimeUpdateFreq: Subscribable<number>

Defined in

src/sdk/traffic/Tcas.ts:454


tfcInstrument

Protected Readonly tfcInstrument: TrafficInstrument

The traffic instrument which provides traffic contacts for this TCAS.

Defined in

src/sdk/traffic/Tcas.ts:505

Methods

canCancelProximityAdvisory

canCancelProximityAdvisory(simTime, intruder): boolean

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

Parameters

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

Returns

boolean

Whether a proximity advisory can be canceled for the intruder.

Defined in

src/sdk/traffic/Tcas.ts:1017


canCancelResolutionAdvisory

canCancelResolutionAdvisory(simTime, intruder): boolean

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

Parameters

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

Returns

boolean

Whether a resolution advisory can be issued for the intruder.

Defined in

src/sdk/traffic/Tcas.ts:972


canCancelTrafficAdvisory

canCancelTrafficAdvisory(simTime, intruder): boolean

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

Parameters

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

Returns

boolean

Whether a traffic advisory can be canceled for the intruder.

Defined in

src/sdk/traffic/Tcas.ts:995


canIssueProximityAdvisory

canIssueProximityAdvisory(simTime, intruder): boolean

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

Parameters

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

Returns

boolean

Whether a proximity advisory can be issued for the intruder.

Defined in

src/sdk/traffic/Tcas.ts:1006


canIssueResolutionAdvisory

canIssueResolutionAdvisory(simTime, intruder): boolean

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

Parameters

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

Returns

boolean

Whether a resolution advisory can be issued for the intruder.

Defined in

src/sdk/traffic/Tcas.ts:958


canIssueTrafficAdvisory

canIssueTrafficAdvisory(simTime, intruder): boolean

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

Parameters

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

Returns

boolean

Whether a traffic advisory can be issued for the intruder.

Defined in

src/sdk/traffic/Tcas.ts:984


createIntruderEntry

createIntruderEntry(contact): I

Creates a TCAS intruder entry from a traffic contact.

Parameters

NameTypeDescription
contactTrafficContactA traffic contact.

Returns

I

Defined in

src/sdk/traffic/Tcas.ts:736


createSensitivity

createSensitivity(): S

Creates a TCAS sensitivity object.

Returns

S

A TCAS sensitivity object.

Defined in

src/sdk/traffic/Tcas.ts:541


doUpdate

doUpdate(simTime): void

Executes an update.

Parameters

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

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:794


filterIntruder

filterIntruder(intruder): boolean

Filters an intruder.

Parameters

NameTypeDescription
intruderIAn intruder.

Returns

boolean

Whether the intruder should be tracked by this TCAS.

Defined in

src/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..

Defined in

src/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.

Defined in

src/sdk/traffic/Tcas.ts:563


getOperatingMode

getOperatingMode(): TcasOperatingMode

Gets this system's operating mode.

Returns

TcasOperatingMode

This system's operating mode.

Defined in

src/sdk/traffic/Tcas.ts:547


getResolutionAdvisoryHost

getResolutionAdvisoryHost(): TcasResolutionAdvisoryHost

Gets this system's resolution advisory host.

Returns

TcasResolutionAdvisoryHost

This system's resolution advisory host.

Defined in

src/sdk/traffic/Tcas.ts:571


init

init(): void

Initializes this system.

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:586


intruderComparator

intruderComparator(a, b): number

Sorts two intruders.

Parameters

NameTypeDescription
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.

Defined in

src/sdk/traffic/Tcas.ts:661


onOperatingModeChanged

onOperatingModeChanged(mode): void

Responds to changes in this TCAS's operating mode.

Parameters

NameTypeDescription
modeTcasOperatingModeThe current operating mode.

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:637


setOperatingMode

setOperatingMode(mode): void

Sets this system's operating mode.

Parameters

NameTypeDescription
modeTcasOperatingModeThe new operating mode.

Returns

void

Defined in

src/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

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

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:858


updateIntruderAlertLevel

updateIntruderAlertLevel(simTime, intruder): void

Updates an intruder's alert level.

Parameters

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

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:890


updateIntruderArrays

updateIntruderArrays(): void

Updates the arrays of intruders tracked by this system.

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:823


updateIntruderPredictions

updateIntruderPredictions(simTime): void

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

Parameters

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

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:808


updateResolutionAdvisory

updateResolutionAdvisory(simTime): void

Updates this TCAS's resolution advisory.

Parameters

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

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:1025


updateSensitivity

updateSensitivity(): void

Returns

void

Defined in

src/sdk/traffic/Tcas.ts:802