Show / Hide Table of Contents

Class IProfileInstanceExtensions

Contains extension methods

Inheritance
System.Object
IProfileInstanceExtensions
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 static class IProfileInstanceExtensions

Methods

Factor(IProfileInstance, IAttributeCollection)

Gets a the factor for an edge with the given attributes.

Declaration
public static Factor Factor(this IProfileInstance profileInstance, IAttributeCollection attributes)
Parameters
IProfileInstance profileInstance

IAttributeCollection attributes

Returns
Factor

FactorAndSpeed(IProfileInstance, IAttributeCollection)

Gets a the factor and speed for an edge with the given attributes.

Declaration
public static FactorAndSpeed FactorAndSpeed(this IProfileInstance profileInstance, IAttributeCollection attributes)
Parameters
IProfileInstance profileInstance

IAttributeCollection attributes

Returns
FactorAndSpeed

GetGetFactor(IProfileInstance, RouterDb)

Gets a function that gets a factor for an edge with the given attributes.

Declaration
public static Func<ushort, Factor> GetGetFactor(this IProfileInstance profileInstance, RouterDb routerDb)
Parameters
IProfileInstance profileInstance

RouterDb routerDb

Returns
Func<System.UInt16, Factor>

GetGetFactorAndSpeed(IProfileInstance, RouterDb)

Gets a function that gets a factor and speed for an edge with the given attributes.

Declaration
public static Func<ushort, FactorAndSpeed> GetGetFactorAndSpeed(this IProfileInstance profileInstance, RouterDb routerDb)
Parameters
IProfileInstance profileInstance

RouterDb routerDb

Returns
Func<System.UInt16, FactorAndSpeed>

IsConstrained(IProfileInstance, Single[])

Checks the given edge values against the contraints in the profile.

Declaration
public static bool IsConstrained(this IProfileInstance profileInstance, float[] edgeValues)
Parameters
IProfileInstance profileInstance

System.Single[] edgeValues

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.