Package jmri.jmrix.grapevine
Class SerialSignalHead
- java.lang.Object
-
- jmri.implementation.AbstractNamedBean
-
- jmri.implementation.AbstractSignalHead
-
- jmri.implementation.DefaultSignalHead
-
- jmri.jmrix.grapevine.SerialSignalHead
-
- All Implemented Interfaces:
java.beans.VetoableChangeListener
,java.lang.Comparable<NamedBean>
,java.util.EventListener
,PropertyChangeProvider
,NamedBean
,Signal
,SignalHead
public class SerialSignalHead extends DefaultSignalHead
Extend jmri.AbstractSignalHead for grapevine serial signals. This object doesn't listen to the Grapevine serial communications. It probably should, however, in case.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameException
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
bank
(package private) GrapevineSystemConnectionMemo
memo
(package private) int
output
(package private) java.lang.String
tSystemName
-
Fields inherited from class jmri.implementation.DefaultSignalHead
delay, masterDelay, mFlashOn
-
Fields inherited from class jmri.implementation.AbstractSignalHead
mAppearance, mHeld, mLit
-
Fields inherited from class jmri.implementation.AbstractNamedBean
listenerRefs, mSystemName, register
-
Fields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_STATE, QUOTED_NAME_FORMAT, UNKNOWN
-
Fields inherited from interface jmri.SignalHead
DARK, FLASHGREEN, FLASHLUNAR, FLASHRED, FLASHYELLOW, GREEN, HELD, LUNAR, RED, YELLOW
-
-
Constructor Summary
Constructors Constructor Description SerialSignalHead(java.lang.String systemName, java.lang.String userName, GrapevineSystemConnectionMemo _memo)
Create a SignalHead object, with both system and user names.SerialSignalHead(java.lang.String systemName, GrapevineSystemConnectionMemo _memo)
Create a SignalHead object, with only system name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
startFlash()
Start the timer that controls flashing.void
stopFlash()
protected void
updateOutput()
Handle a request to change state on layout-
Methods inherited from class jmri.implementation.DefaultSignalHead
appearanceSetsFlashTimer, getUsageReport, getValidStateKeys, getValidStateNames, getValidStates, isTurnoutUsed, setAppearance, setHeld, setLit
-
Methods inherited from class jmri.implementation.AbstractSignalHead
getAppearance, getAppearanceKey, getAppearanceKey, getAppearanceName, getAppearanceName, getBeanType, getDefaultStateName, getDefaultValidStateNames, getDefaultValidStates, getHeld, getLit, getState, isAtStop, isCleared, isShowingRestricting, setState, vetoableChange
-
Methods 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, updateListenerRef
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.NamedBean
addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, compareTo, describeState, dispose, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListenersByReference, getPropertyKeys, getSystemName, getUserName, removeProperty, setComment, setProperty, setUserName, toString, updateListenerRef
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
tSystemName
java.lang.String tSystemName
-
output
int output
-
bank
int bank
-
-
Constructor Detail
-
SerialSignalHead
public SerialSignalHead(java.lang.String systemName, GrapevineSystemConnectionMemo _memo)
Create a SignalHead object, with only system name.- Parameters:
systemName
- system name including prefix, should have ben previously validated_memo
- the associated SystemConnectionMemo
-
SerialSignalHead
public SerialSignalHead(java.lang.String systemName, java.lang.String userName, GrapevineSystemConnectionMemo _memo)
Create a SignalHead object, with both system and user names.- Parameters:
systemName
- system name including prefix, should have ben previously validateduserName
- free form name_memo
- the associated SystemConnectionMemo
-
-
Method Detail
-
updateOutput
protected void updateOutput()
Handle a request to change state on layout- Specified by:
updateOutput
in classDefaultSignalHead
-
startFlash
public void startFlash()
Description copied from class:DefaultSignalHead
Start the timer that controls flashing.- Overrides:
startFlash
in classDefaultSignalHead
-
stopFlash
public void stopFlash()
- Overrides:
stopFlash
in classDefaultSignalHead
-
-