Package jmri.jmrix.sprog
Interface SprogInterface
-
- All Known Implementing Classes:
SprogCSStreamPortController
,SprogTrafficController
public interface SprogInterface
Define interface for sending and receiving messages to the SPROG command station.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addSprogListener(SprogListener l)
void
removeSprogListener(SprogListener l)
void
sendSprogMessage(SprogMessage m, SprogListener l)
Send a message through the interface.boolean
status()
Test operational status of interface.
-
-
-
Method Detail
-
addSprogListener
void addSprogListener(SprogListener l)
-
removeSprogListener
void removeSprogListener(SprogListener l)
-
status
boolean status()
Test operational status of interface.- Returns:
- true if interface implementation is operational.
-
sendSprogMessage
void sendSprogMessage(SprogMessage m, SprogListener l)
Send a message through the interface.- Parameters:
m
- Message to be sent.l
- Listener to be notified of reply.
-
-