Show / Hide Table of Contents

Class ProfileFactorAndSpeedCache

A profile factor and speed cache.

Inheritance
System.Object
ProfileFactorAndSpeedCache
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 ProfileFactorAndSpeedCache

Constructors

ProfileFactorAndSpeedCache(RouterDb)

A profile factor cache.

Declaration
public ProfileFactorAndSpeedCache(RouterDb db)
Parameters
RouterDb db

Properties

RouterDb

Gets the router db.

Declaration
public RouterDb RouterDb { get; }
Property Value
RouterDb

Methods

CalculateFor(Profile[])

Precalculates speed factors for all the given profiles.

Declaration
public void CalculateFor(params Profile[] profiles)
Parameters
Profile[] profiles

CalculateForAll()

Calculates for all registered profiles.

Declaration
public void CalculateForAll()

CanStopOn(UInt16, String)

Returns true if the given edge can be stopped on.

Declaration
public bool CanStopOn(ushort edgeProfile, string profileName)
Parameters
System.UInt16 edgeProfile

System.String profileName

Returns
System.Boolean

ContainsAll(IProfileInstance[])

Returns true if all the given profiles are cached and supported.

Declaration
public bool ContainsAll(params IProfileInstance[] profileInstances)
Parameters
IProfileInstance[] profileInstances

Returns
System.Boolean

ContainsAll(Profile[])

Returns true if all the given profiles are cached and supported.

Declaration
public bool ContainsAll(params Profile[] profiles)
Parameters
Profile[] profiles

Returns
System.Boolean

GetFactor(UInt16, String)

Returns the cached factor.

Declaration
public Factor GetFactor(ushort edgeProfile, string profileName)
Parameters
System.UInt16 edgeProfile

System.String profileName

Returns
Factor

GetFactorAndSpeed(UInt16, String)

Returns the cached factor and speed.

Declaration
public FactorAndSpeed GetFactorAndSpeed(ushort edgeProfile, string profileName)
Parameters
System.UInt16 edgeProfile

System.String profileName

Returns
FactorAndSpeed

GetGetFactor(IProfileInstance)

Gets the get factor function for the given profile.

Declaration
public Func<ushort, Factor> GetGetFactor(IProfileInstance profileInstance)
Parameters
IProfileInstance profileInstance

Returns
Func<System.UInt16, Factor>

GetGetFactorAndSpeed(IProfileInstance)

Gets the get factor function for the given profile.

Declaration
public Func<ushort, FactorAndSpeed> GetGetFactorAndSpeed(IProfileInstance profileInstance)
Parameters
IProfileInstance profileInstance

Returns
Func<System.UInt16, FactorAndSpeed>

GetIsAcceptable(Boolean, IProfileInstance[])

Returns an isacceptable function using the cached data.

Declaration
public Func<GeometricEdge, bool> GetIsAcceptable(bool verifyCanStopOn, params IProfileInstance[] profileInstances)
Parameters
System.Boolean verifyCanStopOn

IProfileInstance[] profileInstances

Returns
Func<GeometricEdge, System.Boolean>

Back to top Built by Itinero, MIT licensed.