The Engine type exposes the following members.

Constructors

  Name Description
Public method Engine()()()()
Initializes a new instance of the Engine class
Protected method Engine(SerializationInfo, StreamingContext)
Initializes a new instance of the Engine class

Methods

  Name Description
Public method BindSlot
Binds the engine to the command station so that it can be controlled.
Protected method Clone
Used internally.
(Inherited from CtcObjectBase.)
Public method DeleteSelf (Overrides CtcObjectBase..::..DeleteSelf()()()().)
Public method EmergencyStop
Stops the engine immediately ignoring deceleration curves that might be programmed with the engine's decoder.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method 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.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected method GetObjectData (Overrides CtcObjectBase..::..GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method InitStoredState
Used internally during deserialization.
(Inherited from CtcObjectBase.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method NotifyObjectChange
Raises the ObjectChangedevent for this object.
(Inherited from CtcObjectBase.)
Public method SetSpeed
Sets the speed of the engine.
Public method StartSpeedRamp
Starts a gradual engine speed increase/decrease.
Public method StopSpeedRamp
Stops a previously started speed ramp.
Public method ToString (Overrides Object..::..ToString()()()().)
Public method UnbindSlot
Unbinds the engine from the command station and frees the slot.

Fields

  Name Description
Protected field _blnDeleted (Inherited from CtcObjectBase.)
Protected field _objParent (Inherited from CtcObjectBase.)
Protected field _objPersistedTag (Inherited from CtcObjectBase.)
Protected field _objStoredState (Inherited from CtcObjectBase.)
Protected field _sctId (Inherited from CtcObjectBase.)
Protected field _strDefaultName (Inherited from CtcObjectBase.)
Protected field _strName (Inherited from CtcObjectBase.)

Properties

  Name Description
Public property Address
Gets or sets the DCC address of the engine.
Public property AutoBindInOpr
Gets or sets whether the engine should automatically bind to a slot when starting the CTC service.
Public property DefaultName
Gets the default identifiable name assigned to this CTC object.
(Inherited from CtcObjectBase.)
Public property Direction
Gets or sets the engine's direction of travel.
Public property Functions
Gets or sets the state of the engine's functions.
Public property ID
Gets the CTC object's globaly unique static identifier.
(Inherited from CtcObjectBase.)
Public property IsDeleted
Gets an indication whether this CTC object has been flaged for deletion by DeleteSelf()()()().
(Inherited from CtcObjectBase.)
Public property Length
Gets or sets the engine's length over buffers.
Public property Name
Gets or sets the identifiable name assigned to this CTC object.
(Inherited from CtcObjectBase.)
Public property Parent
Gets the parent collection that contains this CTC object.
(Inherited from CtcObjectBase.)
Public property 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.)
Public property ReqCatenary
Gets or sets whether the engine is electric and requires overhead catenary.
Public property ScriptEventBinder
Public property Slot
Gets the slot number assigned to the engine by the command station.
Public property Speed
Gets or sets the speed of the engine.
Public property SpeedStepMax
Gets the maximum speed value that can be assigned to the engine.
Public property SpeedSteps
Gets or sets the speed step type of the engine.
Public property Tag
Gets or sets an arbitrary object that provides additional data but is disposed between sessions.
(Inherited from CtcObjectBase.)

Events

  Name Description
Public event BindSlotResponse
Occurs after an attempt to bind an engine to a slot.
Public event DirectionChanged
Occurs when the direction of the engine's bound slot has changed.
Public event FunctionChanged
Occurs when any function of the engine's bound slot has changed.
Public event SpeedChanged
Occurs when the speed of the engine's bound slot has changed.
Public event UnbindSlotResponse
Occurs after an attempt to unbind an engine from a slot.

See Also