Package jmri.jmrit.ctc
Class CtcManager
- java.lang.Object
-
- jmri.jmrit.ctc.CtcManager
-
- All Implemented Interfaces:
java.beans.VetoableChangeListener
,java.util.EventListener
,InstanceManagerAutoDefault
public class CtcManager extends java.lang.Object implements InstanceManagerAutoDefault, java.beans.VetoableChangeListener
Start the CtcManager and register with the instance and configuration managers.- Create/provide the ProgramProperties instance
- Create/provide the CTCSerialData instance
- Provide the OtherData instance
- Provide hash maps of beans used by CTC
- Veto deletes for beans used by CTC
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.HashMap<java.lang.String,NamedBeanHandle<Block>>
blocks
(package private) CTCSerialData
ctcSerialData
(package private) Block
foundBlock
(package private) NBHSensor
foundSensor
(package private) NBHSignal
foundSignal
(package private) NBHTurnout
foundTurnout
(package private) java.util.HashMap<java.lang.String,NBHSensor>
nbhSensors
(package private) java.util.HashMap<java.lang.String,NBHSignal>
nbhSignals
(package private) java.util.HashMap<java.lang.String,NBHTurnout>
nbhTurnouts
(package private) ProgramProperties
programProperties
(package private) java.util.List<NamedBeanUsageReport>
usageReport
-
Constructor Summary
Constructors Constructor Description CtcManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
callOnDataUsage(CodeButtonHandlerData cbhd, java.lang.String osName)
(package private) boolean
findNBHforBean(NamedBean nb)
NamedBeanHandle<Block>
getBlock(java.lang.String name)
(package private) void
getCodeButtonHandleDataUsage(CodeButtonHandlerData cbhd)
CTCSerialData
getCTCSerialData()
NBHSensor
getNBHSensor(java.lang.String name)
NBHSignal
getNBHSignal(java.lang.String name)
NBHTurnout
getNBHTurnout(java.lang.String name)
OtherData
getOtherData()
ProgramProperties
getProgramProperties()
java.util.List<NamedBeanUsageReport>
getUsageReport(NamedBean bean)
(package private) java.lang.String
getVetoDetails(NamedBean nb)
int
getXMLOrder()
CTCSerialData
newCTCSerialData()
ProgramProperties
newProgramProperties()
void
putBlock(java.lang.String name, NamedBeanHandle<Block> block)
void
putNBHSensor(java.lang.String name, NBHSensor nbh)
void
putNBHSignal(java.lang.String name, NBHSignal nbh)
void
putNBHTurnout(java.lang.String name, NBHTurnout nbh)
(package private) void
traffficLockingDataUsage(CodeButtonHandlerData cbhd, java.lang.String osName)
(package private) void
traffficLockingRuleDataUsage(TrafficLockingData rule, java.lang.String osName)
void
vetoableChange(java.beans.PropertyChangeEvent evt)
-
-
-
Field Detail
-
programProperties
ProgramProperties programProperties
-
ctcSerialData
CTCSerialData ctcSerialData
-
nbhSensors
java.util.HashMap<java.lang.String,NBHSensor> nbhSensors
-
nbhSignals
java.util.HashMap<java.lang.String,NBHSignal> nbhSignals
-
nbhTurnouts
java.util.HashMap<java.lang.String,NBHTurnout> nbhTurnouts
-
blocks
java.util.HashMap<java.lang.String,NamedBeanHandle<Block>> blocks
-
foundSensor
NBHSensor foundSensor
-
foundSignal
NBHSignal foundSignal
-
foundTurnout
NBHTurnout foundTurnout
-
foundBlock
Block foundBlock
-
usageReport
java.util.List<NamedBeanUsageReport> usageReport
-
-
Constructor Detail
-
CtcManager
public CtcManager()
-
-
Method Detail
-
getProgramProperties
public ProgramProperties getProgramProperties()
-
newProgramProperties
public ProgramProperties newProgramProperties()
-
getCTCSerialData
public CTCSerialData getCTCSerialData()
-
newCTCSerialData
public CTCSerialData newCTCSerialData()
-
getOtherData
public OtherData getOtherData()
-
getNBHSensor
public NBHSensor getNBHSensor(java.lang.String name)
-
putNBHSensor
public void putNBHSensor(java.lang.String name, NBHSensor nbh)
-
getNBHSignal
public NBHSignal getNBHSignal(java.lang.String name)
-
putNBHSignal
public void putNBHSignal(java.lang.String name, NBHSignal nbh)
-
getNBHTurnout
public NBHTurnout getNBHTurnout(java.lang.String name)
-
putNBHTurnout
public void putNBHTurnout(java.lang.String name, NBHTurnout nbh)
-
getBlock
public NamedBeanHandle<Block> getBlock(java.lang.String name)
-
putBlock
public void putBlock(java.lang.String name, NamedBeanHandle<Block> block)
-
getXMLOrder
public int getXMLOrder()
-
vetoableChange
public void vetoableChange(java.beans.PropertyChangeEvent evt) throws java.beans.PropertyVetoException
- Specified by:
vetoableChange
in interfacejava.beans.VetoableChangeListener
- Throws:
java.beans.PropertyVetoException
-
getVetoDetails
java.lang.String getVetoDetails(NamedBean nb)
-
findNBHforBean
boolean findNBHforBean(NamedBean nb)
-
getUsageReport
public java.util.List<NamedBeanUsageReport> getUsageReport(NamedBean bean)
-
getCodeButtonHandleDataUsage
void getCodeButtonHandleDataUsage(CodeButtonHandlerData cbhd)
-
callOnDataUsage
void callOnDataUsage(CodeButtonHandlerData cbhd, java.lang.String osName)
-
traffficLockingDataUsage
void traffficLockingDataUsage(CodeButtonHandlerData cbhd, java.lang.String osName)
-
traffficLockingRuleDataUsage
void traffficLockingRuleDataUsage(TrafficLockingData rule, java.lang.String osName)
-
-