Public Member Functions | List of all members
grl.ZMQManager Class Reference

ZMQManager Handles the ZeroMQ/JeroMQ loading in flatbuffer data. More...

+ Collaboration diagram for grl.ZMQManager:

Public Member Functions

boolean connect ()
 
grl.flatbuffer.KUKAiiwaState getCurrentMessage ()
 
grl.flatbuffer.KUKAiiwaState getPrevMessage ()
 
boolean isStop ()
 
boolean reconnect ()
 
void setStop (boolean stop)
 
void stop ()
 
grl.flatbuffer.KUKAiiwaState waitForNextMessage ()
 
 ZMQManager (String ZMQ_MASTER_URI, ITaskLogger errorlogger)
 

Detailed Description

ZMQManager Handles the ZeroMQ/JeroMQ loading in flatbuffer data.

Author
Andrew Hundt
Todo:
support sending data back to the controller PC

Definition at line 16 of file ZMQManager.java.

Constructor & Destructor Documentation

§ ZMQManager()

grl.ZMQManager.ZMQManager ( String  ZMQ_MASTER_URI,
ITaskLogger  errorlogger 
)
inline

Definition at line 42 of file ZMQManager.java.

Member Function Documentation

§ connect()

boolean grl.ZMQManager.connect ( )
inline

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

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

Definition at line 53 of file ZMQManager.java.

§ getCurrentMessage()

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

Definition at line 176 of file ZMQManager.java.

§ getPrevMessage()

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

Definition at line 180 of file ZMQManager.java.

§ isStop()

boolean grl.ZMQManager.isStop ( )
inline

Definition at line 186 of file ZMQManager.java.

§ reconnect()

boolean grl.ZMQManager.reconnect ( )
inline

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

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

Definition at line 97 of file ZMQManager.java.

§ setStop()

void grl.ZMQManager.setStop ( boolean  stop)
inline

Definition at line 190 of file ZMQManager.java.

§ stop()

void grl.ZMQManager.stop ( )
inline

Definition at line 201 of file ZMQManager.java.

§ waitForNextMessage()

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

TODO: BUG! noMessageCounter is always set to 0 here and only incremented below, so it will only ever be 0 or 1

Definition at line 105 of file ZMQManager.java.


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