Open Rails

CircuitBreaker Members

CircuitBreaker overview

Public Instance Fields

ClockTime (inherited from AbstractScriptClass) Clock value (in seconds) for the simulation. Starts at activity start time.
ClosingDelayS Delay before circuit breaker closing
CurrentPantographState Current state of the pantograph
CurrentPowerSupplyState Current state of the power supply
CurrentState Current state of the circuit breaker
DistanceM (inherited from AbstractScriptClass) Running total of distance travelled - always positive, updated by train physics.
DriverCloseAuthorization Driver authorization
SetCurrentState Sets the current state of the circuit breaker
SetDriverCloseAuthorization Sets the driver authorization
TCSCloseAuthorization TCS authorization

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.
GetType (inherited from Object)Gets the type of the current instance.
HandleEvent Called when an event happens (a closing order from the driver for example)
Initialize Called once at initialization time.
ToString (inherited from Object)Returns a string that represents the current object.
Update Called regularly at every simulator update cycle.

Protected Instance Constructors

CircuitBreaker Constructor Initializes a new instance of the CircuitBreaker 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

CircuitBreaker Class | ORTS.Scripting.Api Namespace