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 intALLMask value to request notification of all incoming messagesstatic intCLOCKMask value to request notification of messages associated with layout powerstatic intPOLLstatic intPOWERMask value to request notification of messages associated with layout powerstatic intPROGRAMMING(MrcInter Mask value to request notification of messages associated with programmingstatic intSENSORSMask value to request notification of messages indicating changes in sensor statusstatic intTHROTTLEINFOMask value to request notification of messages effecting throttle changesstatic intTURNOUTSMask value to request notification of messages indicating changes in turnout status
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTrafficListener(int Mask, MrcTrafficListener l)voidchangeTrafficListener(int Mask, MrcTrafficListener l)voidremoveTrafficListener(int Mask, MrcTrafficListener l)voidsendMrcMessage(MrcMessage msg)booleanstatus()
-
-
-
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()
-
-