Skip to main content

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

NameType
Textends Facility

Parameters

NameTypeDescription
facilityFacilityThe facility for which to get a waypoint.

Returns

FacilityWaypoint<T>

A waypoint.

Implementation of

FacilityWaypointCache.get

Defined in

src/sdk/navigation/DefaultFacilityWaypointCache.ts:23


getCache

getCache(bus): FacilityWaypointCache

Gets a FacilityWaypointCache instance.

Parameters

NameTypeDescription
busEventBusThe event bus.

Returns

FacilityWaypointCache

A FacilityWaypointCache instance.

Defined in

src/sdk/navigation/DefaultFacilityWaypointCache.ts:51