Open Rails

BrakeController Members

BrakeController overview

Public Instance Fields

ApplyRateBarpS Apply rate of the equalizing reservoir
ClockTime (inherited from AbstractScriptClass) Clock value (in seconds) for the simulation. Starts at activity start time.
CurrentValue Current value of the brake controller
DistanceM (inherited from AbstractScriptClass) Running total of distance travelled - always positive, updated by train physics.
EmergencyBrakingPushButton True if the driver has asked for an emergency braking (push button)
EmergencyRateBarpS Emergency rate of the equalizing reservoir
FullServReductionBar Depressure needed in order to obtain the full service braking
MainReservoirPressureBar Main reservoir pressure
MaximumValue Maximum value of the brake controller
MaxPressureBar Maximum pressure in the brake pipes and the equalizing reservoir
MinimumValue Minimum value of the brake controller
MinReductionBar Release rate of the equalizing reservoir
Notches Gives the list of notches
QuickReleaseRateBarpS Quick release rate of the equalizing reservoir
ReleaseRateBarpS Release rate of the equalizing reservoir
SetCurrentValue Sets the current value of the brake controller lever
SetUpdateValue Sets the state of the brake pressure (1 = increasing, -1 = decreasing)
StepSize Step size of the brake controller
TCSEmergencyBraking True if the TCS has asked for an emergency braking
TCSFullServiceBraking True if the TCS has asked for a full service braking
UpdateValue State of the brake pressure (1 = increasing, -1 = decreasing)

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetState Called in order to get a state for the debug overlay
GetStateFraction Called in order to get a state fraction for the debug overlay
GetType (inherited from Object)Gets the type of the current instance.
HandleEventOverloaded. Called when an event happens (like the alerter button pressed)
Initialize Called once at initialization time.
InitializeMoving Called regularly at every simulator update cycle.
IsValid Called in order to check if the controller is valid
ToString (inherited from Object)Returns a string that represents the current object.
Update Called when starting speed > 0
UpdateEngineBrakePressure Called regularly at every simulator update cycle.
UpdatePressure Called regularly at every simulator update cycle.

Protected Instance Constructors

BrakeController Constructor Initializes a new instance of the BrakeController class.

Protected Instance Methods

Finalize (inherited from Object)Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

BrakeController Class | ORTS.Scripting.Api Namespace