Package jmri.implementation
Class TurnoutSignalMast
java.lang.Object
jmri.implementation.AbstractNamedBean
jmri.implementation.AbstractSignalMast
jmri.implementation.TurnoutSignalMast
- All Implemented Interfaces:
VetoableChangeListener,Comparable<NamedBean>,EventListener,PropertyChangeProvider,NamedBean,Signal,SignalMast
SignalMast implemented via Turnout objects.
A SignalMast that is built up using turnouts to control a specific appearance. System name specifies the creation information:
IF$tsm:basic:one-searchlight(IT1)(IT2)The name is a colon-separated series of terms:
- IF$tsm - defines signal masts of this type
- basic - name of the signaling system
- one-searchlight - name of the particular aspect map
- (IT1)(IT2) - colon-separated list of names for Turnouts
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intOrdinal of all TurnoutSignalMasts to create unique system name.Fields inherited from class jmri.implementation.AbstractSignalMast
aspect, disabledAspects, disablePermissiveSignalMastLogic, map, mastType, speed, systemDefnFields inherited from class jmri.implementation.AbstractNamedBean
listenerRefs, mSystemName, registerFields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_COMMENT, PROPERTY_ENABLED, PROPERTY_KNOWN_STATE, PROPERTY_STATE, PROPERTY_USERNAME, QUOTED_NAME_FORMAT, UNKNOWNFields inherited from interface jmri.Signal
PROPERTY_HELD, PROPERTY_LITFields inherited from interface jmri.SignalMast
PROPERTY_ASPECT, PROPERTY_ASPECT_DISABLED, PROPERTY_ASPECT_ENABLED, PROPERTY_PERMISSIVE_SML_DISABLED -
Constructor Summary
ConstructorsConstructorDescriptionTurnoutSignalMast(String systemName) TurnoutSignalMast(String systemName, String userName) -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetTurnoutName(String appearance) intgetTurnoutState(String appearance) intbooleanbooleanvoidresetPreviousStates(boolean boo) If the signal mast driver requires the previous state to be cleared down before the next state is set.voidSet aspect to a valid name in the current signal system definition.protected static voidsetLastRef(int newVal) voidsetLit(boolean newLit) Set the lit property.voidsetTurnout(String appearance, String turn, int state) voidsetUnLitTurnout(String turnoutName, int turnoutState) voidMethods inherited from class jmri.implementation.AbstractSignalMast
allowUnLit, configureAspectTable, configureSignalSystemDefinition, getAllKnownAspects, getAppearanceMap, getAspect, getBeanType, getDisabledAspects, getHeld, getLit, getMastType, getSignalSystem, getSpeed, getState, getUsageReport, getValidAspects, isAspectDisabled, isAtStop, isCleared, isPermissiveSmlDisabled, isShowingRestricting, setAllowUnLit, setAspectDisabled, setAspectEnabled, setHeld, setMastType, setPermissiveSmlDisabled, setStateMethods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, describeState, dispose, equals, firePropertyChange, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeListenersByReference, getPropertyKeys, getSystemName, getUserName, hashCode, removeProperty, removePropertyChangeListener, removePropertyChangeListener, setComment, setProperty, setUserName, toString, toStringSuffix, updateListenerRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.NamedBean
addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, compareTo, describeState, dispose, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListenersByReference, getPropertyKeys, getRecommendedToolTip, getSystemName, getUserName, removeProperty, setComment, setProperty, setUserName, toString, updateListenerRefMethods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
lastRef
Ordinal of all TurnoutSignalMasts to create unique system name.
-
-
Constructor Details
-
TurnoutSignalMast
-
TurnoutSignalMast
-
-
Method Details
-
setAspect
Description copied from interface:SignalMastSet aspect to a valid name in the current signal system definition.- Specified by:
setAspectin interfaceSignalMast- Overrides:
setAspectin classAbstractSignalMast- Parameters:
aspect- the new aspect shown
-
setUnLitTurnout
-
getUnLitTurnoutName
-
getUnLitTurnout
-
getUnLitTurnoutState
-
setLit
Description copied from class:AbstractSignalMastSet the lit property.This acts on all the SignalHeads included in this SignalMast
- Specified by:
setLitin interfaceSignal- Specified by:
setLitin interfaceSignalMast- Overrides:
setLitin classAbstractSignalMast- Parameters:
newLit- the new value of lit
-
getTurnoutName
-
getTurnoutState
-
setTurnout
-
resetPreviousStates
If the signal mast driver requires the previous state to be cleared down before the next state is set.- Parameters:
boo- true if prior states should be cleared; false otherwise
-
resetPreviousStates
-
isTurnoutUsed
-
getHeadsUsed
-
setLastRef
- Parameters:
newVal- for ordinal of all TurnoutSignalMasts in use
-
getLastRef
- Returns:
- highest ordinal of all TurnoutSignalMasts in use
-
vetoableChange
Description copied from class:AbstractNamedBean- Specified by:
vetoableChangein interfaceNamedBean- Specified by:
vetoableChangein interfaceVetoableChangeListener- Overrides:
vetoableChangein classAbstractSignalMast- Throws:
PropertyVetoException
-