|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ed.inf.sdp2012.group7.control.BluetoothCommunication
public class BluetoothCommunication
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface uk.ac.ed.inf.sdp2012.group7.control.ConstantsReuse |
|---|
ConstantsReuse.OpCodes |
| Field Summary |
|---|
| Fields inherited from interface uk.ac.ed.inf.sdp2012.group7.control.ConstantsReuse |
|---|
ROBOT_MAC, ROBOT_NAME |
| Constructor Summary | |
|---|---|
BluetoothCommunication(NXTComm nxtComm,
NXTInfo info)
|
|
| Method Summary | |
|---|---|
void |
closeConnection()
|
void |
openConnection()
|
int |
recieveFromRobot()
|
ConstantsReuse.OpCodes |
sendToRobot(byte[] command)
Sends a command to the robot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BluetoothCommunication(NXTComm nxtComm,
NXTInfo info)
| Method Detail |
|---|
public int recieveFromRobot()
recieveFromRobot in interface CommunicationInterfacepublic ConstantsReuse.OpCodes sendToRobot(byte[] command)
CommunicationInterface
sendToRobot in interface CommunicationInterfacecommand - - The command to send (4 bytes)
public void openConnection()
throws java.io.IOException
openConnection in interface CommunicationInterfacejava.io.IOExceptionpublic void closeConnection()
closeConnection in interface CommunicationInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||