The CtcService type exposes the following members.

Constructors

  Name Description
Public method CtcService
Initializes a new instance of the CtcService class

Methods

  Name Description
Public method Static member BindEvents
Binds a set of events to a lambda delegate to be executed on the CTC thread.
Public method Static member BroadcastStates
Refreshes the physical railroad states to the CTC held states.
Public method Static member DisposeLayout
Releases any resources used by the current layout.
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.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Static member LoadLayout
Loads a given railroad layout configuration and states.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Static member NewLayout
Clears out all the layout objects.
Public method Static member PostMessage
Posts a text message to the CTC event stream.
Public method Static member QuerySensors
Queries the physical railroad's sensors for their current states.
Public method Static member ResetStates
Sets all the physical railroad states to their default values and eliminates pending states.
Public method Static member SaveLayout
Saves the current railroad layout configuration and states.
Public method Static member Start
Starts the CTC Service.
Public method Static member Stop
Stops the CTC Service.
Public method Static member SubmitCmd(Delegate, UInt32)
Queues up a lambda delegate to be executed on the CTC thread.
Public method Static member SubmitCmd(Delegate, array<Object>[]()[][], UInt32)
Queues up a method delegate to be executed on the CTC thread.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public method Static member UnbindEvents
Unbinds a set of events previously bound by BindEvents(ScriptHandler, String, array<Script..::..Event>[]()[][]).

Properties

  Name Description
Public property Static member Accessories
Gets the collection of Accessory objects managed by the CTC.
Public property Static member Blocks
Gets the collection of Block objects managed by the CTC.
Public property Static member Engines
Gets the collection of Engine objects managed by the CTC.
Public property Static member GlobalScript
Gets or sets the script available globally for all Scripts.
Public property Static member IsStarted
Gets a value indicating whether the CTC service is currently runnig.
Public property Static member Labels
Gets the collection of Label objects managed by the CTC.
Public property Static member LoconetService
Gets or sets the service that provides communications between the CTC and the Loconet network.
Public property Static member PersistedTag
Gets or sets the binary representation of an arbitrary object that provides additional data to be stored with the layout data.
Public property Static member Routes
Gets the collection of Route objects managed by the CTC.
Public property Static member Scripts
Gets the collection of Script objects managed by the CTC.
Public property Static member Sensors
Gets the collection of Sensor objects managed by the CTC.
Public property Static member Sequences
Gets the collection of Sequence objects managed by the CTC.
Public property Static member Signals
Gets the collection of Signal objects managed by the CTC.
Public property Static member SyncContext
Gets or sets the SyncContext object on whose thread events are raised.
Public property Static member Tracks
Gets the collection of Track objects managed by the CTC.

Events

  Name Description
Public event Static member BeforeModeChange
Occurs before the CtcService is about to be stared or stopped.
Public event Static member CtcMessage
Occurs when the CTC Service has a message to report.
Public event Static member ModeChanged
Occurs after the CtcService has been stared or stopped.
Public event Static member ObjectChanged
Occurs when a propery of a CtcObjectBase instance is changed.

See Also