|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.krep.evalbench.comm.Connection
de.cau.cs.kieler.krep.evalbench.comm.RxtxSerialConnection
public class RxtxSerialConnection
Wrapper class for the RxTx package.
Constructor Summary | |
---|---|
RxtxSerialConnection(String device)
|
Method Summary | |
---|---|
void |
dispose()
Closes connection and removes locks on the involved device. |
protected InputStreamReader |
getInput()
Retrieves the input stream for this connection. |
protected OutputStream |
getOutput()
Retrieves the output stream for this connection. |
static String[] |
getSerialPorts()
Retrieves all available serial ports and returns a list of port names. |
Methods inherited from class de.cau.cs.kieler.krep.evalbench.comm.Connection |
---|
hark, receive, receive, receiveByte, send, send, send |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RxtxSerialConnection(String device) throws CommunicationException
device
- name of the serial port
CommunicationException
Method Detail |
---|
public static String[] getSerialPorts()
public void dispose()
protected InputStreamReader getInput()
getInput
in class Connection
null
if no input stream is availableprotected OutputStream getOutput()
getOutput
in class Connection
null
if no output stream is available
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |