Class: DefaultFacilityWaypointCache
A default implementation of FacilityWaypointCache.
Implements
Properties
size
• Readonly
size: number
The maximum size of this cache.
Defined in
src/sdk/navigation/DefaultFacilityWaypointCache.ts:19
Methods
get
▸ get<T
>(facility
): FacilityWaypoint
<T
>
Gets a waypoint from the cache for a specific facility. If one does not exist, a new waypoint will be created.
Type parameters
Name | Type |
---|---|
T | extends Facility |
Parameters
Name | Type | Description |
---|---|---|
facility | Facility | The facility for which to get a waypoint. |
Returns
A waypoint.
Implementation of
Defined in
src/sdk/navigation/DefaultFacilityWaypointCache.ts:23
getCache
▸ getCache(bus
): FacilityWaypointCache
Gets a FacilityWaypointCache instance.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
A FacilityWaypointCache instance.
Defined in
src/sdk/navigation/DefaultFacilityWaypointCache.ts:51