de.cau.cs.kieler.klots.util
Class NXTCommunicator

java.lang.Object
  extended by de.cau.cs.kieler.klots.util.NXTCommunicator

public class NXTCommunicator
extends Object

Rating red

Constructor Summary
NXTCommunicator()
           
 
Method Summary
 void closeTransmission(boolean notifyCommunicationPartner)
           
static NXTCommunicator getInstance()
           
 NXTComm getNXTComm()
           
 NXTConnector getNXTConnector()
           
 NXTInfo getNXTInfo()
           
 StringBuffer receiveMessage()
           
 String receiveMessageLine()
           
 NXTInfo[] searchForNXTs()
           
 NXTInfo[] searchForNXTs(String name, String address, int protocol)
           
 int sendMessage(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXTCommunicator

public NXTCommunicator()
Method Detail

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 -