The data is stored in the standard PanelPro xml files. The data classes have references to JMRI beans. There are 3 CTC NBH... classes which act as wrappers to the NamedBeanHandles for the JMRI NamedBeans. The NBH... classes encapsulate the NamedBeanHandles to make program access easier.
A list of each NBH type is maintained in CtcManager. This provides a single location to find the NBH object for a particular name. To maintain consistency, there can only be one NBH for each name. When a NamedBeanHandle is renamed, the new name is added to the list using the same NBH object. This way code that has the name string can still find the object.
Interface Summary Interface Description SignalDirectionIndicatorsInterface
Class Summary Class Description BundleProvides standard access for resource bundles in a package. CallOn CodeButtonHandlerThis is the "master" class that handles everything when a code button is pressed. CodeButtonSimulator CTCConstants CTCExceptionBufferMost times the user does not have the System Console displayed when the CTC system is being started up. CTCFilesCTC File utility CTCMain CtcManagerStart the CtcManager and register with the instance and configuration managers. CtcRunActionSwing action to create and register the CTC Run Time. CtcRunStartup Fleeting IndicationLockingSignals LockedRouteEach of these objects describe a route consisting of all of the occupancy sensors(s) that specify a route. LockedRoutesManagerThis object manages all of the active routes. NBHSensorThis object attempts to "extend" (implements) Sensor functionality that is needed by the CTC system. NBHSignalProvide access to both signal masts and signal heads for the CTC system. NBHTurnoutThis object additionally supports "inverted feedback", so that when someone calls "getKnownState", (typically my own code in this CTC project) we return the "adjusted" value based upon "inverted feedback". RequestedDirectionObservedThis object ONLY maintains ONE property: _mRequestedDirection. SignalDirectionIndicators SignalDirectionIndicatorsNull SignalDirectionLever SignalDirectionLever.LNR_NBHSensors SwitchDirectionIndicators SwitchDirectionLever SwitchIndicatorsRoute TrafficLocking TrafficLockingInfo TurnoutLockThis only works with Digitrax DS54's and DS64's configured to LOCALLY change the switch via either a pushbutton or toggle switch.
Exception Summary Exception Description CTCException