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