Package jmri.jmrix.dcc4pc
Interface Dcc4PcInterface
-
- All Known Implementing Classes:
Dcc4PcTrafficController
public interface Dcc4PcInterface
Define interface for sending and receiving messages to the DCC4PC computer interface device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDcc4PcListener(Dcc4PcListener l)voidremoveDcc4PcListener(Dcc4PcListener l)voidsendDcc4PcMessage(Dcc4PcMessage m, Dcc4PcListener l)Send a message through the interface.booleanstatus()Test operational status of interface.
-
-
-
Method Detail
-
addDcc4PcListener
void addDcc4PcListener(Dcc4PcListener l)
-
removeDcc4PcListener
void removeDcc4PcListener(Dcc4PcListener l)
-
status
boolean status()
Test operational status of interface.- Returns:
- true if interface implementation is operational.
-
sendDcc4PcMessage
void sendDcc4PcMessage(Dcc4PcMessage m, Dcc4PcListener l)
Send a message through the interface.- Parameters:
m- Message to be sent.l- Listener to be notified of reply.
-
-