Fawkes API
Fawkes Development Version
|
Referee Box Communication Processor. More...
#include "processor/processor.h"
Public Member Functions | |
virtual | ~RefBoxProcessor () |
Pure virtual destructor. More... | |
virtual bool | check_connection ()=0 |
Check if the connection is alive and reconnect. More... | |
virtual void | refbox_process ()=0 |
Process incoming refbox communication. More... | |
virtual void | set_handler (RefBoxStateHandler *rsh) |
Set handler. More... | |
Protected Attributes | |
RefBoxStateHandler * | _rsh |
Refbox state handler, set via set_handler() More... | |
Referee Box Communication Processor.
Classes that implement this interface communicate with a refbox and provide information received to a RefBoxStateHandler.
Definition at line 28 of file processor.h.
|
virtual |
Pure virtual destructor.
Definition at line 45 of file processor.cpp.
|
pure virtual |
Check if the connection is alive and reconnect.
If the connection is not alive the processor shall do a single attempt to reestablish the connection.
Implemented in SplRefBoxProcessor, Msl2010RefBoxProcessor, and RemoteBlackBoardRefBoxProcessor.
Referenced by RefBoxCommThread::loop().
|
pure virtual |
Process incoming refbox communication.
This shall process a (limited number of) communication packets received from the particular refbox at hand.
Implemented in SplRefBoxProcessor, Msl2010RefBoxProcessor, and RemoteBlackBoardRefBoxProcessor.
Referenced by RefBoxCommThread::loop().
|
virtual |
Set handler.
rsh | Ref box state handler used to process incoming information |
Definition at line 53 of file processor.cpp.
References _rsh.
Referenced by RefBoxCommThread::init().
|
protected |
Refbox state handler, set via set_handler()
Definition at line 40 of file processor.h.
Referenced by RemoteBlackBoardRefBoxProcessor::refbox_process(), set_handler(), and Msl2010RefBoxProcessor::~Msl2010RefBoxProcessor().