Package jmri.jmrit.ctc.ctcserialdata
Class CTCSerialData
java.lang.Object
jmri.jmrit.ctc.ctcserialdata.CTCSerialData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class"Return" value from function "getCTCTurnoutData": -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCodeButtonHandlerData(CodeButtonHandlerData codeButtonHandlerData) intintgetCodeButtonHandlerData(int index) intgetCodeButtonHandlerDataViaUniqueID(int uniqueID) getCTCTurnoutData(Turnout turnout) Routine to search our _mCodeButtonHandlerDataArrayList for the O.S. section that contains the passed turnout.This routine is used to support FrmTUL.java.intgetIndexOfUniqueID(int uniqueID) getMyShortStringNoCommaViaUniqueID(int uniqueID) intvoidmoveDown(int index) voidmoveUp(int index) voidremoveCodeButtonHandlerData(int index) voidsetCodeButtonHandlerData(int index, CodeButtonHandlerData codeButtonHandlerData) voidsetOtherData(OtherData otherData) voidupdateSwitchAndSignalEtcNumbersEverywhere(int index, int newSwitchNumber, int newSignalEtcNumber, int newGUIColumnNumber, boolean newGUIGeneratedAtLeastOnceAlready) Change the identifying attributes with the exception of the uniqueID.
-
Constructor Details
-
CTCSerialData
public CTCSerialData()
-
-
Method Details
-
getOtherData
-
getUniqueNumber
-
getCodeButtonHandlerDataViaUniqueID
-
getMyShortStringNoCommaViaUniqueID
-
getIndexOfUniqueID
-
setOtherData
-
getCodeButtonHandlerDataArrayList
-
addCodeButtonHandlerData
-
removeCodeButtonHandlerData
-
getCodeButtonHandlerData
-
getCodeButtonHandlerDataSize
-
moveUp
-
moveDown
-
updateSwitchAndSignalEtcNumbersEverywhere
public void updateSwitchAndSignalEtcNumbersEverywhere(int index, int newSwitchNumber, int newSignalEtcNumber, int newGUIColumnNumber, boolean newGUIGeneratedAtLeastOnceAlready) Change the identifying attributes with the exception of the uniqueID. The potential primary changes are the switch and signal numbers.- Parameters:
index- The row being changed.newSwitchNumber- The new switch number which is always odd.newSignalEtcNumber- The new signal number which is always one more than the switch number.newGUIColumnNumber- The location on the panel. Used by the GUI export process.newGUIGeneratedAtLeastOnceAlready- A flag to indicate whether the GUI export should include this column.
-
setCodeButtonHandlerData
-
findHighestSwitchNumberUsedSoFar
-
findHighestColumnNumberUsedSoFar
-
getCTCTurnoutData
Routine to search our _mCodeButtonHandlerDataArrayList for the O.S. section that contains the passed turnout.- Parameters:
turnout- The turnout to search for in our table.- Returns:
- CTCTurnoutData, else if turnout not found, null.
-
getHashSetOfAllLockedTurnoutsExcludingPassedOne
public HashSet<String> getHashSetOfAllLockedTurnoutsExcludingPassedOne(CodeButtonHandlerData excludedOne) This routine is used to support FrmTUL.java. It generates a HashSet (which prevents duplicate strings) of all such locked turnouts, EXCLUDING the passed "excludedOne", since that one will be handled locally in the calling code.- Parameters:
excludedOne- The one to NOT include in the returned information.- Returns:
- All locked turnouts NOT INCLUDING excludedOne.
-