The CtcService type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
|
CtcService |
Initializes a new instance of the CtcService class
|
Methods
| Name | Description | |
|---|---|---|
|
|
BindEvents |
Binds a set of events to a lambda delegate to be executed on the CTC thread.
|
|
|
BroadcastStates |
Refreshes the physical railroad states to the CTC held states.
|
|
|
DisposeLayout |
Releases any resources used by the current layout.
|
|
|
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.) |
|
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
|
LoadLayout |
Loads a given railroad layout configuration and states.
|
|
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
|
NewLayout |
Clears out all the layout objects.
|
|
|
PostMessage |
Posts a text message to the CTC event stream.
|
|
|
QuerySensors |
Queries the physical railroad's sensors for their current states.
|
|
|
ResetStates |
Sets all the physical railroad states to their default values and eliminates pending states.
|
|
|
SaveLayout |
Saves the current railroad layout configuration and states.
|
|
|
Start |
Starts the CTC Service.
|
|
|
Stop |
Stops the CTC Service.
|
|
|
SubmitCmd(Delegate, UInt32) |
Queues up a lambda delegate to be executed on the CTC thread.
|
|
|
SubmitCmd(Delegate, array<Object>[]()[][], UInt32) |
Queues up a method delegate to be executed on the CTC thread.
|
|
|
ToString | (Inherited from Object.) |
|
|
UnbindEvents |
Unbinds a set of events previously bound by BindEvents(ScriptHandler, String, array<Script..::..Event>[]()[][]).
|
Properties
| Name | Description | |
|---|---|---|
|
|
Accessories |
Gets the collection of Accessory objects managed by the CTC.
|
|
|
Blocks |
Gets the collection of Block objects managed by the CTC.
|
|
|
Engines |
Gets the collection of Engine objects managed by the CTC.
|
|
|
GlobalScript |
Gets or sets the script available globally for all Scripts.
|
|
|
IsStarted |
Gets a value indicating whether the CTC service is currently runnig.
|
|
|
Labels |
Gets the collection of Label objects managed by the CTC.
|
|
|
LoconetService |
Gets or sets the service that provides communications between the CTC and the Loconet network.
|
|
|
PersistedTag |
Gets or sets the binary representation of an arbitrary object that provides additional data to be stored with the layout data.
|
|
|
Routes |
Gets the collection of Route objects managed by the CTC.
|
|
|
Scripts |
Gets the collection of Script objects managed by the CTC.
|
|
|
Sensors |
Gets the collection of Sensor objects managed by the CTC.
|
|
|
Sequences |
Gets the collection of Sequence objects managed by the CTC.
|
|
|
Signals |
Gets the collection of Signal objects managed by the CTC.
|
|
|
SyncContext |
Gets or sets the SyncContext object on whose thread events are raised.
|
|
|
Tracks |
Gets the collection of Track objects managed by the CTC.
|
Events
| Name | Description | |
|---|---|---|
|
|
BeforeModeChange |
Occurs before the CtcService is about to be stared or stopped.
|
|
|
CtcMessage |
Occurs when the CTC Service has a message to report.
|
|
|
ModeChanged |
Occurs after the CtcService has been stared or stopped.
|
|
|
ObjectChanged |
Occurs when a propery of a CtcObjectBase instance is changed.
|