C# Class OpenBveApi.Runtime.VehicleState

Represents the current state of the train.
Show file Open project: leezer3/OpenBVE Class Usage Examples

Public Methods

Method Description
VehicleState ( double location, Speed speed, double bcPressure, double mrPressure, double erPressure, double bpPressure, double sapPressure ) : System

Creates a new instance of this class.

VehicleState ( double location, Speed speed, double bcPressure, double mrPressure, double erPressure, double bpPressure, double sapPressure, double Radius, double Cant, double Pitch ) : System

Creates a new instance of this class.

Method Details

VehicleState() public method

Creates a new instance of this class.
public VehicleState ( double location, Speed speed, double bcPressure, double mrPressure, double erPressure, double bpPressure, double sapPressure ) : System
location double The location of the front of the train, in meters.
speed Speed The speed of the train.
bcPressure double The pressure in the brake cylinder, in pascal.
mrPressure double The pressure in the main reservoir, in pascal.
erPressure double The pressure in the emergency reservoir, in pascal.
bpPressure double The pressure in the brake pipe, in pascal.
sapPressure double The pressure in the straight air pipe, in pascal.
return System

VehicleState() public method

Creates a new instance of this class.
public VehicleState ( double location, Speed speed, double bcPressure, double mrPressure, double erPressure, double bpPressure, double sapPressure, double Radius, double Cant, double Pitch ) : System
location double The location of the front of the train, in meters.
speed Speed The speed of the train.
bcPressure double The pressure in the brake cylinder, in pascal.
mrPressure double The pressure in the main reservoir, in pascal.
erPressure double The pressure in the emergency reservoir, in pascal.
bpPressure double The pressure in the brake pipe, in pascal.
sapPressure double The pressure in the straight air pipe, in pascal.
Radius double The curve radius at the front of the train, in meters.
Cant double The cant value for this curve radius.
Pitch double The pitch value at the front of the train.
return System