The Engine type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
|
Engine()()()() |
Initializes a new instance of the Engine class
|
|
|
Engine(SerializationInfo, StreamingContext) |
Initializes a new instance of the Engine class
|
Methods
| Name | Description | |
|---|---|---|
|
|
BindSlot |
Binds the engine to the command station so that it can be controlled.
|
|
|
Clone |
Used internally. (Inherited from CtcObjectBase.) |
|
|
DeleteSelf | (Overrides CtcObjectBase..::..DeleteSelf()()()().) |
|
|
EmergencyStop |
Stops the engine immediately ignoring deceleration curves that might be programmed with the engine's decoder.
|
|
|
Equals | (Inherited from Object.) |
|
|
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
|
GetObjectData | (Overrides CtcObjectBase..::..GetObjectData(SerializationInfo, StreamingContext).) |
|
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
|
InitStoredState |
Used internally during deserialization. (Inherited from CtcObjectBase.) |
|
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
|
NotifyObjectChange |
Raises the ObjectChangedevent for this object. (Inherited from CtcObjectBase.) |
|
|
SetSpeed |
Sets the speed of the engine.
|
|
|
StartSpeedRamp |
Starts a gradual engine speed increase/decrease.
|
|
|
StopSpeedRamp |
Stops a previously started speed ramp.
|
|
|
ToString | (Overrides Object..::..ToString()()()().) |
|
|
UnbindSlot |
Unbinds the engine from the command station and frees the slot.
|
Fields
| Name | Description | |
|---|---|---|
|
|
_blnDeleted | (Inherited from CtcObjectBase.) |
|
|
_objParent | (Inherited from CtcObjectBase.) |
|
|
_objPersistedTag | (Inherited from CtcObjectBase.) |
|
|
_objStoredState | (Inherited from CtcObjectBase.) |
|
|
_sctId | (Inherited from CtcObjectBase.) |
|
|
_strDefaultName | (Inherited from CtcObjectBase.) |
|
|
_strName | (Inherited from CtcObjectBase.) |
Properties
| Name | Description | |
|---|---|---|
|
|
Address |
Gets or sets the DCC address of the engine.
|
|
|
AutoBindInOpr |
Gets or sets whether the engine should automatically bind to a slot when starting the CTC service.
|
|
|
DefaultName |
Gets the default identifiable name assigned to this CTC object. (Inherited from CtcObjectBase.) |
|
|
Direction |
Gets or sets the engine's direction of travel.
|
|
|
Functions |
Gets or sets the state of the engine's functions.
|
|
|
ID |
Gets the CTC object's globaly unique static identifier. (Inherited from CtcObjectBase.) |
|
|
IsDeleted |
Gets an indication whether this CTC object has been flaged for deletion by DeleteSelf()()()(). (Inherited from CtcObjectBase.) |
|
|
Length |
Gets or sets the engine's length over buffers.
|
|
|
Name |
Gets or sets the identifiable name assigned to this CTC object. (Inherited from CtcObjectBase.) |
|
|
Parent |
Gets the parent collection that contains this CTC object. (Inherited from CtcObjectBase.) |
|
|
PersistedTag |
Gets or sets the binary representation of an arbitrary object that provides additional data to be stored with the layout data. (Inherited from CtcObjectBase.) |
|
|
ReqCatenary |
Gets or sets whether the engine is electric and requires overhead catenary.
|
|
|
ScriptEventBinder | |
|
|
Slot |
Gets the slot number assigned to the engine by the command station.
|
|
|
Speed |
Gets or sets the speed of the engine.
|
|
|
SpeedStepMax |
Gets the maximum speed value that can be assigned to the engine.
|
|
|
SpeedSteps |
Gets or sets the speed step type of the engine.
|
|
|
Tag |
Gets or sets an arbitrary object that provides additional data but is disposed between sessions. (Inherited from CtcObjectBase.) |
Events
| Name | Description | |
|---|---|---|
|
|
BindSlotResponse |
Occurs after an attempt to bind an engine to a slot.
|
|
|
DirectionChanged |
Occurs when the direction of the engine's bound slot has changed.
|
|
|
FunctionChanged |
Occurs when any function of the engine's bound slot has changed.
|
|
|
SpeedChanged |
Occurs when the speed of the engine's bound slot has changed.
|
|
|
UnbindSlotResponse |
Occurs after an attempt to unbind an engine from a slot.
|