Package jmri.jmrix.marklin
Interface MarklinInterface
-
- All Known Implementing Classes:
MarklinTrafficController
public interface MarklinInterface
Define the interface for sending and receiving messages to the Marklin command station.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMarklinListener(MarklinListener l)
void
removeMarklinListener(MarklinListener l)
void
sendMarklinMessage(MarklinMessage m, MarklinListener l)
Send a message through the interface.boolean
status()
Test operational status of interface.
-
-
-
Method Detail
-
addMarklinListener
void addMarklinListener(MarklinListener l)
-
removeMarklinListener
void removeMarklinListener(MarklinListener l)
-
status
boolean status()
Test operational status of interface.- Returns:
- true is interface implementation is operational.
-
sendMarklinMessage
void sendMarklinMessage(MarklinMessage m, MarklinListener l)
Send a message through the interface.- Parameters:
m
- Message to be sent.l
- Listener to be notified of reply.
-
-