Package jmri.jmrix.can
Interface CanInterface
- All Known Implementing Classes:
AbstractCanTrafficController,GcTrafficController,LawicellTrafficController,LoopbackTrafficController,MergTrafficController,TrafficController
public interface CanInterface
Define interface for sending and receiving CAN messages
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidSend a message through the interface.voidsendCanReply(CanReply r, CanListener l) Send a reply through the interface.booleanstatus()Test operational status of interface.
-
Method Details
-
addCanListener
-
removeCanListener
-
status
boolean status()Test operational status of interface.- Returns:
- true is interface implementation is operational.
-
sendCanMessage
Send a message through the interface.- Parameters:
m- Message to be sent.l- Listener to be notified of reply.
-
sendCanReply
Send a reply through the interface.- Parameters:
r- Reply to be sent.l- Listener to be notified of reply.
-