Skip to content

Commit a71cbb0

Browse files
improve comments
1 parent 37445f7 commit a71cbb0

File tree

2 files changed

+58
-15
lines changed

2 files changed

+58
-15
lines changed

packages/amdb/src/types/enums.ts

Lines changed: 54 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
2+
import {
3+
ApronBoundaryNode,
4+
AsrnNode,
5+
HoldingPositionNode,
6+
ParkingBoundaryNode,
7+
ParkingStandArea,
8+
RunwayBoundaryNode,
9+
RunwayExitLineNode,
10+
RunwayIntersectionNode,
11+
StandNode,
12+
TaxiwayLinkNode,
13+
TaxiwayNode,
14+
} from "./features"
15+
116
export enum FeatureType {
217
RunwayElement = 0,
318
RunwayIntersection = 1,
@@ -264,38 +279,64 @@ export enum LineStructureType {
264279
Unknown = -32767,
265280
}
266281

282+
/**
283+
* Descriptions of each NodeType can be found in the associated interface
284+
*
285+
* See {@link AsrnNode}
286+
*/
267287
export enum NodeType {
268-
/**
269-
* A node that makes up part of a taxiway which cannot be categorised into any other type,
270-
*/
271288
Taxiway,
272-
/**
273-
* A node placed on a holding point,
274-
*/
275289
HoldingPosition,
276-
/**
277-
* A node located on the attached side of some runway element, representing the transition from taxiway to runway
278-
*/
279290
RunwayBoundary,
280-
/**
281-
* A node connecting a runway centerline to a runway exit/entry line
282-
*/
283291
RunwayExitLine,
284292
RunwayIntersection,
285293
ParkingBoundary,
286294
ApronBoundary,
287-
ParkingLink,
295+
TaxiwayLink,
288296
Deicing,
289297
Stand,
290298
}
291299

292300
export enum EdgeType {
301+
/**
302+
* An edge running along a taxiway, or connecting two taxiways while crossing a runway
303+
*
304+
* Can connect to {@link TaxiwayNode}s, {@link HoldingPositionNode}s, {@link RunwayBoundaryNode}s, {@link ApronBoundaryNode}s, or {@link TaxiwayLinkNode}s (in any order or combination)
305+
*/
293306
Taxiway,
307+
/**
308+
* An edge running along the center of a runway
309+
*
310+
* Can connect {@link RunwayExitLineNode}s and {@link RunwayIntersectionNode}s (in any order or combination)
311+
*/
294312
Runway,
313+
/**
314+
* An edge running from the centerline of a runway to a taxiway
315+
*
316+
* Will connect a {@link RunwayExitLineNode} to a {@link RunwayBoundaryNode}
317+
*/
295318
RunwayExit,
319+
/**
320+
* Forms the portion of a stand entry occuring outside of the {@link ParkingStandArea}
321+
*
322+
* Will connect a {@link TaxiwayNode} to a {@link ParkingBoundaryNode}
323+
*/
296324
TaxiwayLink,
325+
/**
326+
* Not yet implemented
327+
*/
297328
Deicing = 5,
329+
/**
330+
* An edge running along an apron taxiline
331+
*
332+
* Can connect {@link ApronBoundaryNode}s and {@link TaxiwayNode}s
333+
*/
298334
Apron,
335+
/**
336+
* An edge running along a {@link ParkingStandArea} to form the main body of a stand line
337+
*
338+
* Will connect a {@link StandNode} to a {@link ParkingBoundaryNode}
339+
*/
299340
Stand,
300341
}
301342

packages/amdb/src/types/features/asrn.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ export type RunwayIntersectionNode = NodeBase<
207207
/**
208208
* Represents a node placed on the boundary of a {@link TaxiwayElement} and an ({@link ParkingStandArea} or {@link ApronElement}) where it is intersected by a stand entry line
209209
*
210-
* This node will generally connect a {@link TaxiwayLinkEdge} and a {@link StandEdge}.
210+
* This node will generally connect a TaxiwayLink edge and a Stand edge.
211211
*
212212
* **NOTE:** These nodes can be colocated as each one will only connect to one {@link StandNode}
213+
*
214+
* There can also be multiple ParkingBoundaryNodes serving one {@link StandNode}
213215
*/
214216
export type ParkingBoundaryNode = NodeBase<
215217
{
@@ -261,7 +263,7 @@ export type TaxiwayLinkNode = NodeBase<
261263
*/
262264
idnetwrk: string | null
263265
},
264-
NodeType.ParkingLink
266+
NodeType.TaxiwayLink
265267
>
266268

267269
/**

0 commit comments

Comments
 (0)