uk.ac.ed.inf.sdp2012.group7.control
Interface CommunicationInterface

All Superinterfaces:
ConstantsReuse
All Known Implementing Classes:
BluetoothCommunication, SimulatorCommunication

public interface CommunicationInterface
extends ConstantsReuse


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
 
Method Summary
 void closeConnection()
           
 void openConnection()
           
 int recieveFromRobot()
           
 ConstantsReuse.OpCodes sendToRobot(byte[] command)
          Sends a command to the robot
 

Method Detail

sendToRobot

ConstantsReuse.OpCodes sendToRobot(byte[] command)
Sends a command to the robot

Parameters:
command - - The command to send (4 bytes)
Returns:
OpCodes - The robots response

recieveFromRobot

int recieveFromRobot()

openConnection

void openConnection()
                    throws java.io.IOException
Throws:
java.io.IOException

closeConnection

void closeConnection()