Class: WT21FixInfoPageController
Fix Info page controller
Constructors
constructor
• new WT21FixInfoPageController(bus
, fms
, store
, page
, screen
): WT21FixInfoPageController
Instantiates a new instance of the controller
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | Event Bus |
fms | WT21Fms | WT21 FMS |
store | WT21FixInfoPageStore | Fix Info page store |
page | WT21FmcPage <null > | Fix Info page |
screen | WT21FmcScreen | FMC page manager. |
Returns
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:33
Properties
currentPage
• Readonly
currentPage: Subject
<number
>
current page number, 1-based
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:12
currentPageIndex
• Readonly
currentPageIndex: MappedSubscribable
<number
>
current page index, 0-based
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:14
pageCount
• Readonly
pageCount: Subject
<number
>
total number of pages
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:16
simTime
• Readonly
simTime: ConsumerSubject
<number
>
sim time as a unix timestamp in milliseconds
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:19
transitionAltitudeOrLevel
• Readonly
transitionAltitudeOrLevel: Subject
<number
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:21
Methods
createAbeamPoint
▸ createAbeamPoint(): Promise
<boolean
>
Creates the abeam point
Returns
Promise
<boolean
>
true on success
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:244
deleteAbeamPoint
▸ deleteAbeamPoint(): boolean
Deletes the abeam point
Returns
boolean
true on success
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:254
deleteCurrentFix
▸ deleteCurrentFix(): boolean
Delete the current page fix
Returns
boolean
true
Throws
Help window message if needed
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:192
deleteLatLonCross
▸ deleteLatLonCross(): void
Delete the bearing/distance for a row Null entries will be computed.
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:236
deleteRadDisCross
▸ deleteRadDisCross(): void
Delete the bearing/distance for a row Null entries will be computed.
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:214
getFix
▸ getFix(input
): Promise
<null
| Facility
>
Get a fix from a scratchpad entry.
Parameters
Name | Type | Description |
---|---|---|
input | string | any valid fix format. |
Returns
Promise
<null
| Facility
>
Promise with a facility or null if not found.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:169
init
▸ init(): void
Initialise this instance of the controller
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:42
next
▸ next(): void
Advance to the next page
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:138
pause
▸ pause(): void
Pause the controller and it's subscriptions
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:125
previous
▸ previous(): void
Go back to the previous page
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:147
resume
▸ resume(): void
Resume the controller and it's subscriptions
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:131
setCurrentFix
▸ setCurrentFix(fix
): void
Set the current page fix
Parameters
Name | Type | Description |
---|---|---|
fix | Facility | Facility |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:182
setCurrentPage
▸ setCurrentPage(page
): void
Set the current page
Parameters
Name | Type | Description |
---|---|---|
page | number | page number, 1-based |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:159
setLatLonCross
▸ setLatLonCross(latitude
, longitude
): Promise
<boolean
>
Set the bearing/distance for a row; either bearing or dist is mandatory. Null entries will be computed.
Parameters
Name | Type | Description |
---|---|---|
latitude | null | number | Latitude in degrees or null to compute. |
longitude | null | number | Longitude in degrees or null to compute. |
Returns
Promise
<boolean
>
true if an intersection was found.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:225
setRadDisCross
▸ setRadDisCross(bearing
, dist
): Promise
<boolean
>
Set the bearing/distance for a row; either bearing or dist is mandatory. Null entries will be computed.
Parameters
Name | Type | Description |
---|---|---|
bearing | null | number | bearing in degrees magnetic or true depending on current ref |
dist | null | number | distance in nautical miles |
Returns
Promise
<boolean
>
true if an intersection was found.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPageController.ts:204