Show / Hide Table of Contents

Class VehicleCache

An LRU cache for vehicle profiles.

Inheritance
System.Object
VehicleCache
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class VehicleCache

Constructors

VehicleCache(Vehicle[])

Creates a new vehicle cache.

Declaration
public VehicleCache(Vehicle[] vehicles)
Parameters
Vehicle[] vehicles

Properties

Vehicles

Gets the vehicles.

Declaration
public Vehicle[] Vehicles { get; }
Property Value
Vehicle[]

Methods

Add(IAttributeCollection, out Whitelist, out Boolean[], Boolean)

Adds a new collection to cache if appropriate.

Declaration
public bool Add(IAttributeCollection attributes, out Whitelist whitelist, out bool[] canTraverse, bool filter = true)
Parameters
IAttributeCollection attributes

Whitelist whitelist

System.Boolean[] canTraverse

System.Boolean filter

Returns
System.Boolean

Add(IAttributeCollection, Boolean)

Adds a new collection to cache if appropriate.

Declaration
public bool Add(IAttributeCollection attributes, bool filter = true)
Parameters
IAttributeCollection attributes

System.Boolean filter

Returns
System.Boolean

AddToWhiteList(IAttributeCollection, Whitelist, Boolean)

Adds to the whitelist.

Declaration
public bool AddToWhiteList(IAttributeCollection attributes, Whitelist whitelist, bool filter = true)
Parameters
IAttributeCollection attributes

Whitelist whitelist

System.Boolean filter

Returns
System.Boolean

AnyCanTraverse(IAttributeCollection, Boolean)

Returns true if any of the vehicle can traverse the given way.

Declaration
public bool AnyCanTraverse(IAttributeCollection attributes, bool filter = true)
Parameters
IAttributeCollection attributes

System.Boolean filter

Returns
System.Boolean

CanTraverse(IAttributeCollection, Vehicle, Boolean)

Returns true if the given vehicle can traverse the given edge.

Declaration
public bool CanTraverse(IAttributeCollection attributes1, Vehicle vehicle, bool filter = true)
Parameters
IAttributeCollection attributes1

Vehicle vehicle

System.Boolean filter

Returns
System.Boolean

TryGetCached(IAttributeCollection, out Whitelist, Boolean)

Tries to get cached whitelist.

Declaration
public bool TryGetCached(IAttributeCollection attributes, out Whitelist whitelist, bool filter = true)
Parameters
IAttributeCollection attributes

Whitelist whitelist

System.Boolean filter

Returns
System.Boolean

TryGetCached(IAttributeCollection, out Whitelist, out Boolean[], Boolean)

Tries to get cached whitelist.

Declaration
public bool TryGetCached(IAttributeCollection attributes, out Whitelist whitelist, out bool[] canTraverse, bool filter = true)
Parameters
IAttributeCollection attributes

Whitelist whitelist

System.Boolean[] canTraverse

System.Boolean filter

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.