Show / Hide Table of Contents

Class ProfileExtensions

Contains extensions methods related to profiles.

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

Methods

CanStopOn(FactorAndSpeed)

Converts a factor definition for the given factor and speed.

Declaration
public static bool CanStopOn(this FactorAndSpeed factorAndSpeed)
Parameters
FactorAndSpeed factorAndSpeed

Returns
System.Boolean

CanStopOn(Profile, IAttributeCollection)

Returns true if the link defined by the given attributes can be stopped on.

Declaration
public static bool CanStopOn(this Profile profile, IAttributeCollection attributes)
Parameters
Profile profile

IAttributeCollection attributes

Returns
System.Boolean

Factor(Profile, IAttributeCollection)

Gets the factor for the given profile on the link defined by the given attributes.

Declaration
public static Factor Factor(this Profile profile, IAttributeCollection attributes)
Parameters
Profile profile

IAttributeCollection attributes

Returns
Factor

GetGetFactor(Profile, RouterDb)

Gets a get factor function based on the given routerdb.

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

RouterDb routerDb

Returns
Func<System.UInt16, Factor>

GetGetFactorAndSpeed(Profile, RouterDb)

Gets a get factor function based on the given routerdb.

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

RouterDb routerDb

Returns
Func<System.UInt16, FactorAndSpeed>

Speed(Profile, IAttributeCollection)

Gets the speed for the given profile on the link defined by the given attributes.

Declaration
public static Speed Speed(this Profile profile, IAttributeCollection attributes)
Parameters
Profile profile

IAttributeCollection attributes

Returns
Speed

ToFactor(FactorAndSpeed)

Converts a factor definition for the given factor and speed.

Declaration
public static Factor ToFactor(this FactorAndSpeed factorAndSpeed)
Parameters
FactorAndSpeed factorAndSpeed

Returns
Factor

ToSpeed(FactorAndSpeed)

Converts a speed definition for the given factor and speed.

Declaration
public static Speed ToSpeed(this FactorAndSpeed factorAndSpeed)
Parameters
FactorAndSpeed factorAndSpeed

Returns
Speed

Back to top Built by Itinero, MIT licensed.