Show / Hide Table of Contents

Class DynamicVehicle

A dynamic vehicle based on single lua script.

Inheritance
System.Object
Vehicle
DynamicVehicle
Inherited Members
Vehicle.Equals(IAttributeCollection, IAttributeCollection)
Vehicle.Register(Profile)
Vehicle.Profile(String)
Vehicle.GetProfiles()
Vehicle.Shortest()
Vehicle.Fastest()
Vehicle.Register()
Vehicle.Register(Vehicle)
Vehicle.Get(String)
Vehicle.TryGet(String, Vehicle)
Vehicle.GetRegistered()
Vehicle.Serialize(Stream)
Vehicle.Deserialize(Stream)
Vehicle.CustomDeserializer
Vehicle.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 DynamicVehicle : Vehicle

Constructors

DynamicVehicle(String)

Creates a new dynamic profile based on the given lua script.

Declaration
public DynamicVehicle(string script)
Parameters
System.String script

Properties

MetaWhiteList

Gets the attributes whitelist.

Declaration
public override HashSet<string> MetaWhiteList { get; }
Property Value
HashSet<System.String>

Overrides
Vehicle.MetaWhiteList

Name

Gets the name.

Declaration
public override sealed string Name { get; }
Property Value
System.String

Overrides
Vehicle.Name

Normalize

Gets the normalize flag.

Declaration
public override bool Normalize { get; }
Property Value
System.Boolean

Overrides
Vehicle.Normalize

Parameters

Gets the parameters.

Declaration
public override IReadonlyAttributeCollection Parameters { get; }
Property Value
IReadonlyAttributeCollection

Overrides
Vehicle.Parameters

ProfileFunctions

Gets all the profile functions.

Declaration
protected IEnumerable<object> ProfileFunctions { get; }
Property Value
IEnumerable<System.Object>

ProfileWhiteList

Gets the attributes whitelist.

Declaration
public override HashSet<string> ProfileWhiteList { get; }
Property Value
HashSet<System.String>

Overrides
Vehicle.ProfileWhiteList

Script

Gets the script.

Declaration
public Script Script { get; }
Property Value
Script

VehicleTypes

Gets the vehicle types.

Declaration
public override sealed string[] VehicleTypes { get; }
Property Value
System.String[]

Overrides
Vehicle.VehicleTypes

Methods

AddToWhiteList(IAttributeCollection, Whitelist)

Declaration
public override bool AddToWhiteList(IAttributeCollection attributes, Whitelist whitelist)
Parameters
IAttributeCollection attributes

Whitelist whitelist

Returns
System.Boolean

Overrides
Vehicle.AddToWhiteList(IAttributeCollection, Whitelist)

DoSerialize(Stream)

Serializes the content of this vehicle.

Declaration
protected override long DoSerialize(Stream stream)
Parameters
Stream stream

Returns
System.Int64

Overrides
Vehicle.DoSerialize(Stream)

FactorAndSpeed(IAttributeCollection, Whitelist)

Pushes the attributes through this profiles and adds used keys in the given whitelist.

Declaration
public override FactorAndSpeed FactorAndSpeed(IAttributeCollection attributes, Whitelist whiteList)
Parameters
IAttributeCollection attributes

Whitelist whiteList

Returns
FactorAndSpeed

Overrides
Vehicle.FactorAndSpeed(IAttributeCollection, Whitelist)

Load(String)

Loads the vehicle from the given script.

Declaration
public static DynamicVehicle Load(string script)
Parameters
System.String script

Returns
DynamicVehicle

LoadFromEmbeddedResource(Assembly, String)

Loads the vehicle from the embedded resources.

Declaration
public static DynamicVehicle LoadFromEmbeddedResource(Assembly assembly, string embeddedResource)
Parameters
Assembly assembly

System.String embeddedResource

Returns
DynamicVehicle

LoadFromStream(Stream)

Loads the vehicle from the given stream.

Declaration
public static DynamicVehicle LoadFromStream(Stream stream)
Parameters
Stream stream

Returns
DynamicVehicle

LoadWithSize(Stream)

Loads the vehicle from the given stream using the current position as the size.

Declaration
public static DynamicVehicle LoadWithSize(Stream stream)
Parameters
Stream stream

Returns
DynamicVehicle

Back to top Built by Itinero, MIT licensed.