Package jmri.jmrix.ecos
Interface EcosInterface
-
- All Known Implementing Classes:
EcosTrafficController
public interface EcosInterface
Define interface for sending and receiving messages to the ECoS command station.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEcosListener(EcosListener l)voidremoveEcosListener(EcosListener l)voidsendEcosMessage(EcosMessage m, EcosListener l)Send a message through the interface.booleanstatus()Test operational status of interface.
-
-
-
Method Detail
-
addEcosListener
void addEcosListener(EcosListener l)
-
removeEcosListener
void removeEcosListener(EcosListener l)
-
status
boolean status()
Test operational status of interface.- Returns:
- true is interface implementation is operational.
-
sendEcosMessage
void sendEcosMessage(EcosMessage m, EcosListener l)
Send a message through the interface.- Parameters:
m- Message to be sent.l- Listener to be notified of reply.
-
-