Public Member Functions | Protected Member Functions | List of all members
grl.UDPManager Class Reference
+ Collaboration diagram for grl.UDPManager:

Public Member Functions

boolean connect ()
 
grl.flatbuffer.KUKAiiwaState getCurrentMessage ()
 
grl.flatbuffer.KUKAiiwaState getPrevMessage ()
 
boolean isStop ()
 
boolean sendMessage (byte[] msg, int size) throws IOException
 
void setStop (boolean stop)
 
void stop ()
 
 UDPManager (String laptopIP, String laptopPort, ITaskLogger errorlogger)
 
grl.flatbuffer.KUKAiiwaState waitForNextMessage ()
 

Protected Member Functions

void finalize ()
 

Detailed Description

Definition at line 9 of file UDPManager.java.

Constructor & Destructor Documentation

§ UDPManager()

grl.UDPManager.UDPManager ( String  laptopIP,
String  laptopPort,
ITaskLogger  errorlogger 
)
inline

Definition at line 40 of file UDPManager.java.

Member Function Documentation

§ connect()

boolean grl.UDPManager.connect ( )
inline

Blocks until a connection is established or stop() is called.

Returns
error code: false on success, otherwise failure (or told to stop)
Exceptions
UnknownHostException

Definition at line 60 of file UDPManager.java.

§ finalize()

void grl.UDPManager.finalize ( )
inlineprotected

Definition at line 254 of file UDPManager.java.

§ getCurrentMessage()

grl.flatbuffer.KUKAiiwaState grl.UDPManager.getCurrentMessage ( )
inline

Definition at line 225 of file UDPManager.java.

§ getPrevMessage()

grl.flatbuffer.KUKAiiwaState grl.UDPManager.getPrevMessage ( )
inline

Definition at line 229 of file UDPManager.java.

§ isStop()

boolean grl.UDPManager.isStop ( )
inline

Definition at line 235 of file UDPManager.java.

§ sendMessage()

boolean grl.UDPManager.sendMessage ( byte []  msg,
int  size 
) throws IOException
inline

Blocks until a connection is re-established or stop() is called.

Returns
error code: false on success, otherwise failure (or told to stop)
Exceptions
IOException

Definition at line 161 of file UDPManager.java.

§ setStop()

void grl.UDPManager.setStop ( boolean  stop)
inline

Definition at line 239 of file UDPManager.java.

§ stop()

void grl.UDPManager.stop ( )
inline

Definition at line 250 of file UDPManager.java.

§ waitForNextMessage()

grl.flatbuffer.KUKAiiwaState grl.UDPManager.waitForNextMessage ( )
inline

Definition at line 168 of file UDPManager.java.


The documentation for this class was generated from the following file: