Class TrameReceiver
java.lang.Object
org.bilat.discoveryMat.moo.telemetre.moo.concret.serial.comm.connexion.receiver.TrameReceiver
- All Implemented Interfaces:
SerialNewLineListener_I
Peut être instancier à chaque appel d'une nouvelle session, pour plus de sureté! addTrameReceiveListener(TrameReceiveListener_I listener) permet d'écouter les trames lu!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
lineReceived
(String line) is called when a new line terminating with "\r\n" is received line: the full line without the "\r\n" tokenboolean
void
start()
void
stop()
-
Constructor Details
-
TrameReceiver
-
-
Method Details
-
start
- Throws:
TooManyListenersException
jssc.SerialPortException
-
stop
public void stop() throws jssc.SerialPortException- Throws:
jssc.SerialPortException
-
lineReceived
Description copied from interface:SerialNewLineListener_I
is called when a new line terminating with "\r\n" is received line: the full line without the "\r\n" token- Specified by:
lineReceived
in interfaceSerialNewLineListener_I
-
addTrameReceiveListener
-
removeTrameReceiveListener
-