CtcService Class |
Namespace: RRAutoLib.CTC
The CtcService type exposes the following members.
| Name | Description | |
|---|---|---|
| CtcService | Initializes a new instance of the CtcService class |
| Name | Description | |
|---|---|---|
| Accessories | Gets the collection of Accessory objects managed by the CTC. | |
| Blocks | Gets the collection of Block objects managed by the CTC. | |
| Buttons | Gets the collection of Button objects managed by the CTC. | |
| Engines | Gets the collection of Engine objects managed by the CTC. | |
| EventScripts | Gets the collection of EventScript objects managed by the CTC. | |
| ForceSetState | Gets or sets whether set state commands should be transmitted even if the target state is already held. | |
| GlobalScripts | Gets the collection of GlobalScript objects managed by the CTC. | |
| 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. | |
| 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. | |
| SimulationMode | Gets or sets whether the CTC service is running in simulation mode. | |
| StepScripts | Gets the collection of StepScript objects managed by the CTC. | |
| SyncContext | Gets or sets the dispatcher that will be responsible for thread synchronization. | |
| Tracks | Gets the collection of Track objects managed by the CTC. |
| Name | Description | |
|---|---|---|
| BroadcastStates | Refreshes the physical railroad states to the CTC held states. | |
| DisposeLayout | Releases any resources used by the current layout. | |
| Execute | Places a subroutine on the CTC thread execution queue. | |
| LoadLayout | Loads a given railroad layout configuration and states. | |
| 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. |
| Name | Description | |
|---|---|---|
| BeforeModeChange | Occurs before the CtcService is about to be stared or stopped. | |
| ModeChanged | Occurs after the CtcService has been stared or stopped. | |
| ObjectChanged | Occurs when a propery of a CtcObjectBase instance is changed. | |
| RxMessage | Occurs when a CTC message has been received. |