Class Profile
Represents a profile.
Inheritance
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Profile : IProfileInstance
Constructors
Profile(String, ProfileMetric, String[], Constraint[], Vehicle)
Creates a new profile.
Declaration
public Profile(string name, ProfileMetric metric, string[] vehicleTypes, Constraint[] constrainedVariables, Vehicle parent)
Parameters
|
System.String
name
|
|
ProfileMetric
metric
|
|
System.String[]
vehicleTypes
|
|
Constraint[]
constrainedVariables
|
|
Vehicle
parent
|
Profile(String, ProfileMetric, String[], Constraint[], Vehicle, Func<IAttributeCollection, FactorAndSpeed>)
Creates a new profile.
Declaration
public Profile(string name, ProfileMetric metric, string[] vehicleTypes, Constraint[] constrainedVariables, Vehicle parent, Func<IAttributeCollection, FactorAndSpeed> custom)
Parameters
|
System.String
name
|
|
ProfileMetric
metric
|
|
System.String[]
vehicleTypes
|
|
Constraint[]
constrainedVariables
|
|
Vehicle
parent
|
|
Func<IAttributeCollection, FactorAndSpeed>
custom
|
Properties
ConstrainedVariables
Gets the constrained variables.
Declaration
public virtual Constraint[] ConstrainedVariables { get; }
Property Value
|
Constraint[]
|
FullName
Gets the full name used by this profile.
Declaration
public virtual string FullName { get; }
Property Value
|
System.String
|
InstructionGenerator
Gets the instruction generator for this profile.
Declaration
public virtual IUnimodalInstructionGenerator InstructionGenerator { get; }
Property Value
|
IUnimodalInstructionGenerator
|
Metric
Gets the metric used by this profile.
Declaration
public virtual ProfileMetric Metric { get; }
Property Value
|
ProfileMetric
|
Name
Gets the name used by this profile.
Declaration
public virtual string Name { get; }
Property Value
|
System.String
|
Parent
VehicleTypes
Gets the vehicle types.
Declaration
public virtual string[] VehicleTypes { get; }
Property Value
|
System.String[]
|
Methods
BuildConstrained(Single[])
Builds a constrained instance of this profile.
Declaration
public IProfileInstance BuildConstrained(float[] values)
Parameters
|
System.Single[]
values
|
Returns
|
IProfileInstance
|
ClearRegistered()
Clears all registered profiles.
Declaration
public static void ClearRegistered()
Equals(IAttributeCollection, IAttributeCollection)
Returns true if the two given edges are equals as far as this vehicle is concerned.
Declaration
public virtual bool Equals(IAttributeCollection attributes1, IAttributeCollection attributes2)
Parameters
|
IAttributeCollection
attributes1
|
|
IAttributeCollection
attributes2
|
Returns
|
System.Boolean
|
FactorAndSpeed(IAttributeCollection)
Get a function to calculate properties for a set given edge attributes.
Declaration
public virtual FactorAndSpeed FactorAndSpeed(IAttributeCollection attributes)
Parameters
|
IAttributeCollection
attributes
|
Returns
|
FactorAndSpeed
|
GetRegistered()
Gets all registered profiles.
Declaration
public static IEnumerable<Profile> GetRegistered()
Returns
|
IEnumerable<Profile>
|
GetRegistered(String)
Gets a registered profiles.
Declaration
public static Profile GetRegistered(string name)
Parameters
|
System.String
name
|
Returns
|
Profile
|
Register(Profile)
Registers a profile.
Declaration
public static void Register(Profile profile)
Parameters
|
Profile
profile
|
ToString()
Gets a description of this profile.
Declaration
public override string ToString()
Returns
|
System.String
|
Overrides
TryGet(String, out Profile)
Tries to get a registred profile.
Declaration
public static bool TryGet(string name, out Profile value)
Parameters
|
System.String
name
|
|
Profile
value
|
Returns
|
System.Boolean
|
Explicit Interface Implementations
IProfileInstance.Constraints
Gets the constraint variables.
Declaration
float[] IProfileInstance.Constraints { get; }
Returns
|
System.Single[]
|