Package jmri.jmrix.mrc
Interface MrcInterface
-
- All Known Implementing Classes:
MrcPacketizer
,MrcTrafficController
public interface MrcInterface
Layout interface, similar to command station
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL
Mask value to request notification of all incoming messagesstatic int
CLOCK
Mask value to request notification of messages associated with layout powerstatic int
POLL
static int
POWER
Mask value to request notification of messages associated with layout powerstatic int
PROGRAMMING
(MrcInter Mask value to request notification of messages associated with programmingstatic int
SENSORS
Mask value to request notification of messages indicating changes in sensor statusstatic int
THROTTLEINFO
Mask value to request notification of messages effecting throttle changesstatic int
TURNOUTS
Mask value to request notification of messages indicating changes in turnout status
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTrafficListener(int Mask, MrcTrafficListener l)
void
changeTrafficListener(int Mask, MrcTrafficListener l)
void
removeTrafficListener(int Mask, MrcTrafficListener l)
void
sendMrcMessage(MrcMessage msg)
boolean
status()
-
-
-
Field Detail
-
ALL
static final int ALL
Mask value to request notification of all incoming messages- See Also:
- Constant Field Values
-
THROTTLEINFO
static final int THROTTLEINFO
Mask value to request notification of messages effecting throttle changes- See Also:
- Constant Field Values
-
PROGRAMMING
static final int PROGRAMMING
(MrcInter Mask value to request notification of messages associated with programming- See Also:
- Constant Field Values
-
TURNOUTS
static final int TURNOUTS
Mask value to request notification of messages indicating changes in turnout status- See Also:
- Constant Field Values
-
SENSORS
static final int SENSORS
Mask value to request notification of messages indicating changes in sensor status- See Also:
- Constant Field Values
-
POWER
static final int POWER
Mask value to request notification of messages associated with layout power- See Also:
- Constant Field Values
-
CLOCK
static final int CLOCK
Mask value to request notification of messages associated with layout power- See Also:
- Constant Field Values
-
POLL
static final int POLL
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendMrcMessage
void sendMrcMessage(MrcMessage msg)
-
addTrafficListener
void addTrafficListener(int Mask, MrcTrafficListener l)
-
removeTrafficListener
void removeTrafficListener(int Mask, MrcTrafficListener l)
-
changeTrafficListener
void changeTrafficListener(int Mask, MrcTrafficListener l)
-
status
boolean status()
-
-