Click or drag to resize

Vehicle Class

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

Represents a vehicle in the simulation
Inheritance Hierarchy
SystemObject
  TrafficSimulation.Simulation.EngineSimulationBase
    TrafficSimulation.Simulation.Engine.VehicleHandlingVehicle

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

The Vehicle type exposes the following members.

Constructors
  NameDescription
Public methodVehicle(VehicleType)
Initializes a new instance of the Vehicle class.
Public methodVehicle(VehicleType, IRoute)
Initializes a new instance of the Vehicle class.
Top
Properties
  NameDescription
Public propertyAcceleration
Gets or sets the acceleration.
Public propertyCurrentVelocity
The current velocity of the vehicle
Public propertyId
The id of the Object
(Inherited from SimulationBase.)
Public propertyIsConnectionBlocking
Signals if this placable is blocking the node connection where it lives on.
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
Public propertyRoute
Gets the route.
Public propertyVehicleType
the type of the vehicle
Top
Methods
  NameDescription
Public methodEquals
Equals Implementation
(Inherited from SimulationBase.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
GetHashCode impelementation
(Inherited from SimulationBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetDefect
Sets a car as defective.
Public methodSetRoute
Sets the route. And the Position to the startposition of the route.
Public methodTick
A single tick
Public methodToString
ToString Implementation
(Inherited from SimulationBase.)
Top
See Also