Click or drag to resize

Engine Class

A DCC locomotive to be controled.
Inheritance Hierarchy

Namespace:  RRAutoLib.CTC
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
<SerializableAttribute>
Public NotInheritable Class Engine
	Inherits CtcObjectBase
	Implements ISupportsScriptEvents

The Engine type exposes the following members.

Constructors
  NameDescription
Public methodEngine
Initializes a new instance of the Engine class
Top
Properties
  NameDescription
Public propertyAddress
Gets or sets the DCC address of the engine.
Public propertyAutoBindInOpr
Gets or sets whether the engine should automatically bind to a slot when starting the CTC service.
Public propertyDefaultName
Gets the default identifiable name assigned to this CTC object.
(Inherited from CtcObjectBase.)
Public propertyDirection
Gets or sets the engine's direction of travel.
Public propertyFunctions
Gets the engine's function states.
Public propertyFunctionsByte
Gets or sets the engine's function states.
Public propertyID
Gets the CTC object's globaly unique static identifier.
(Inherited from CtcObjectBase.)
Public propertyIsBound
Gets a value indicating whether the engine has been bound to a command station slot.
Public propertyIsDeleted
Gets an indication whether this CTC object has been flaged for deletion by DeleteSelf.
(Inherited from CtcObjectBase.)
Public propertyLength
Gets or sets the engine's length over buffers.
Public propertyName
Gets or sets the identifiable name assigned to this CTC object.
(Inherited from CtcObjectBase.)
Public propertyParent
Gets the parent list that contains this CTC object.
(Inherited from CtcObjectBase.)
Public propertyPersistedTag
Gets or sets the binary representation of an arbitrary object that provides additional data to be stored with the layout data.
(Inherited from CtcObjectBase.)
Public propertyReqCatenary
Gets or sets whether the engine is electric and requires overhead catenary.
Public propertyScriptEventBinder
Public propertySlot
Gets the slot number assigned to the Engine by the command station.
Public propertySpeed
Gets or sets the speed of the engine.
Public propertySpeedStepMax
Gets the maximum speed value that can be assigned to the engine.
Public propertySpeedSteps
Gets or sets the speed step type of the engine.
Public propertyTag
Gets or sets an arbitrary object that provides additional data but is disposed between sessions.
(Inherited from CtcObjectBase.)
Top
Methods
  NameDescription
Public methodBindSlot
Binds the engine to the command station so that it can be controlled.
Protected methodClone
Used internally.
(Inherited from CtcObjectBase.)
Public methodDeleteSelf (Overrides CtcObjectBaseDeleteSelf.)
Public methodEmergencyStop
Stops the engine immediately ignoring deceleration curves that might be programmed with the engine's decoder.
Public methodNotifyObjectChanged
Raises the ObjectChanged event for this object.
(Inherited from CtcObjectBase.)
Public methodSetSpeed
Sets the speed of the engine.
Public methodStartSpeedRamp
Creates a task that performs a gradual engine speed increase/decrease.
Public methodStopSpeedRamp
Stops a previously started speed ramp.
Public methodToString (Overrides ObjectToString.)
Public methodUnbindSlot
Unbinds the engine from the command station and frees the slot.
Top
Events
  NameDescription
Public eventBindSlotResponse
Occurs after an attempt to bind an engine to a slot.
Public eventDirectionChanged
Occurs when the direction of the engine's bound slot has changed.
Public eventFunctionChanged
Occurs when any function of the engine's bound slot has changed.
Public eventSpeedChanged
Occurs when the speed of the engine's bound slot has changed.
Public eventUnbindSlotResponse
Occurs after an attempt to unbind an engine from a slot.
Top
See Also