de.cau.cs.kieler.klots.util
Class NXTCommunicator
java.lang.Object
de.cau.cs.kieler.klots.util.NXTCommunicator
public class NXTCommunicator
- extends Object
- Rating

Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NXTCommunicator
public NXTCommunicator()
getInstance
public static NXTCommunicator getInstance()
- Returns:
- NXTCommunicator
getNXTInfo
public NXTInfo getNXTInfo()
- Returns:
- NXTInfo
getNXTConnector
public NXTConnector getNXTConnector()
- Returns:
- NXTConnector
searchForNXTs
public NXTInfo[] searchForNXTs(String name,
String address,
int protocol)
- Parameters:
name
- address
- protocol
-
- Returns:
- NXTInfo[]
searchForNXTs
public NXTInfo[] searchForNXTs()
- Returns:
- NXTInfo[]
getNXTComm
public NXTComm getNXTComm()
- Returns:
- NXTComm
sendMessage
public int sendMessage(String msg)
- Parameters:
msg
-
- Returns:
- int
receiveMessage
public StringBuffer receiveMessage()
throws KlotsConnectionException
- Returns:
- StringBuffer
- Throws:
KlotsConnectionException
receiveMessageLine
public String receiveMessageLine()
throws KlotsConnectionException
- Returns:
- String
- Throws:
KlotsConnectionException
closeTransmission
public void closeTransmission(boolean notifyCommunicationPartner)
- Parameters:
notifyCommunicationPartner
-