Click or drag to resize

CtcService Class

The main class for providing CTC (Centralized Traffic Control) services.
Inheritance Hierarchy
SystemObject
  RRAutoLib.CTCCtcService

Namespace:  RRAutoLib.CTC
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public NotInheritable Class CtcService

The CtcService type exposes the following members.

Constructors
  NameDescription
Public methodCtcService
Initializes a new instance of the CtcService class
Top
Properties
  NameDescription
Public propertyStatic memberAccessories
Gets the collection of Accessory objects managed by the CTC.
Public propertyStatic memberBlocks
Gets the collection of Block objects managed by the CTC.
Public propertyStatic memberButtons
Gets the collection of Button objects managed by the CTC.
Public propertyStatic memberEngines
Gets the collection of Engine objects managed by the CTC.
Public propertyStatic memberEventScripts
Gets the collection of EventScript objects managed by the CTC.
Public propertyStatic memberForceSetState
Gets or sets whether set state commands should be transmitted even if the target state is already held.
Public propertyStatic memberGlobalScripts
Gets the collection of GlobalScript objects managed by the CTC.
Public propertyStatic memberIsStarted
Gets a value indicating whether the CTC service is currently runnig.
Public propertyStatic memberLabels
Gets the collection of Label objects managed by the CTC.
Public propertyStatic memberLoconetService
Gets or sets the service that provides communications between the CTC and the Loconet network.
Public propertyStatic memberPersistedTag
Gets or sets the binary representation of an arbitrary object that provides additional data to be stored with the layout data.
Public propertyStatic memberRoutes
Gets the collection of Route objects managed by the CTC.
Public propertyStatic memberSensors
Gets the collection of Sensor objects managed by the CTC.
Public propertyStatic memberSequences
Gets the collection of Sequence objects managed by the CTC.
Public propertyStatic memberSignals
Gets the collection of Signal objects managed by the CTC.
Public propertyStatic memberSimulationMode
Gets or sets whether the CTC service is running in simulation mode.
Public propertyStatic memberStepScripts
Gets the collection of StepScript objects managed by the CTC.
Public propertyStatic memberSyncContext
Gets or sets the dispatcher that will be responsible for thread synchronization.
Public propertyStatic memberTracks
Gets the collection of Track objects managed by the CTC.
Top
Methods
  NameDescription
Public methodStatic memberBroadcastStates
Refreshes the physical railroad states to the CTC held states.
Public methodStatic memberDisposeLayout
Releases any resources used by the current layout.
Public methodStatic memberExecute
Places a subroutine on the CTC thread execution queue.
Public methodStatic memberLoadLayout
Loads a given railroad layout configuration and states.
Public methodStatic memberNewLayout
Clears out all the layout objects.
Public methodStatic memberPostMessage
Posts a text message to the CTC event stream.
Public methodStatic memberQuerySensors
Queries the physical railroad's sensors for their current states.
Public methodStatic memberResetStates
Sets all the physical railroad states to their default values and eliminates pending states.
Public methodStatic memberSaveLayout
Saves the current railroad layout configuration and states.
Public methodStatic memberStart
Starts the CTC Service.
Public methodStatic memberStop
Stops the CTC Service.
Top
Events
  NameDescription
Public eventStatic memberBeforeModeChange
Occurs before the CtcService is about to be stared or stopped.
Public eventStatic memberModeChanged
Occurs after the CtcService has been stared or stopped.
Public eventStatic memberObjectChanged
Occurs when a propery of a CtcObjectBase instance is changed.
Public eventStatic memberRxMessage
Occurs when a CTC message has been received.
Top
See Also