Click or drag to resize

IVehicle Interface

[This is preliminary documentation and is subject to change.]

Represents a vehicle in the simulation

Namespace:  TrafficSimulation.Simulation.Engine
Assembly:  TrafficSimulation.Simulation.Engine (in TrafficSimulation.Simulation.Engine.dll) Version: 1.0.0.2 (1.0.0.2)
Syntax
public interface IVehicle : ITickable, 
	IPlaceable, ISimulationBase

The IVehicle type exposes the following members.

Properties
  NameDescription
Public propertyAcceleration
Gets or sets the acceleration.
Public propertyCurrentVelocity
The current velocity of the vehicle
Public propertyId
Gets the identifier.
(Inherited from ISimulationBase.)
Public propertyIsConnectionBlocking
Signals if this placable is blocking the node connection where it lives on.
(Inherited from IPlaceable.)
Public propertyIsDefect
Signals if a vehicle is defect.
Public propertyIsForeignVehicle
Gets or sets a value indicating whether this instance is a foreign vehicle.
Public propertyPosition
The position
(Inherited from IPlaceable.)
Public propertyRoute
Gets or sets the route.
Public propertyVehicleType
the type of the vehicle
Top
Methods
  NameDescription
Public methodSetDefect
Toggels a car defective.
Public methodSetRoute
Sets the route. And the Position to the startposition of the route.
Public methodTick
A single tick
(Inherited from ITickable.)
Top
See Also