Package jmri.implementation
Class SignalMastRepeater
- java.lang.Object
-
- jmri.implementation.SignalMastRepeater
-
public class SignalMastRepeater extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
_direction
(package private) boolean
_enabled
protected NamedBeanHandle<SignalMast>
_master
protected NamedBeanHandle<SignalMast>
_slave
static int
BOTHWAY
(package private) boolean
disposed
static int
MASTERTOSLAVE
(package private) java.beans.PropertyChangeListener
mastListener
protected NamedBeanHandleManager
nbhm
static int
SLAVETOMASTER
-
Constructor Summary
Constructors Constructor Description SignalMastRepeater(java.lang.String master, java.lang.String slave)
SignalMastRepeater(SignalMast master, SignalMast slave)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
int
getDirection()
boolean
getEnabled()
SignalMast
getMasterMast()
java.lang.String
getMasterMastName()
SignalMast
getSlaveMast()
java.lang.String
getSlaveMastName()
void
initialise()
void
setDirection(int dir)
void
setEnabled(boolean en)
(package private) void
updateStatus(SignalMast mastFrom, SignalMast mastTo)
-
-
-
Field Detail
-
BOTHWAY
public static final int BOTHWAY
- See Also:
- Constant Field Values
-
MASTERTOSLAVE
public static final int MASTERTOSLAVE
- See Also:
- Constant Field Values
-
SLAVETOMASTER
public static final int SLAVETOMASTER
- See Also:
- Constant Field Values
-
nbhm
protected NamedBeanHandleManager nbhm
-
_master
protected NamedBeanHandle<SignalMast> _master
-
_slave
protected NamedBeanHandle<SignalMast> _slave
-
_enabled
boolean _enabled
-
_direction
int _direction
-
mastListener
java.beans.PropertyChangeListener mastListener
-
disposed
boolean disposed
-
-
Constructor Detail
-
SignalMastRepeater
public SignalMastRepeater(@Nonnull SignalMast master, @Nonnull SignalMast slave)
-
SignalMastRepeater
public SignalMastRepeater(@Nonnull java.lang.String master, @Nonnull java.lang.String slave)
-
-
Method Detail
-
getMasterMast
@Nonnull public SignalMast getMasterMast()
-
getSlaveMast
@Nonnull public SignalMast getSlaveMast()
-
getMasterMastName
@Nonnull public java.lang.String getMasterMastName()
-
getSlaveMastName
@Nonnull public java.lang.String getSlaveMastName()
-
getDirection
public int getDirection()
-
setDirection
public void setDirection(int dir)
-
setEnabled
public void setEnabled(boolean en)
-
getEnabled
public boolean getEnabled()
-
initialise
public void initialise()
-
updateStatus
void updateStatus(@Nonnull SignalMast mastFrom, @Nonnull SignalMast mastTo)
-
dispose
public void dispose()
-
-