Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MediatorCollegue Class Referenceabstract

#include <mediatorcollegue.h>

Public Types

typedef unsigned long InformMediatorType
 

Public Member Functions

 MediatorCollegue (Mediator *myMediator=0)
 
virtual ~MediatorCollegue ()
 
void informMediator (MediatorEvent *event)
 Calls the mediator that this collegue has performed something. More...
 
virtual void doOnMediatorCallBack (MediatorEvent *event)=0
 Is called when the mediator informs this collegue that an event has to be performed by this collegue instance. More...
 

Static Public Attributes

static const InformMediatorType DEFAULT_INFORM_MEDIATOR_TYPE = 0
 

Protected Member Functions

void setMediator (Mediator *myMediator)
 Sets the own mediator. More...
 

Member Typedef Documentation

typedef unsigned long InformMediatorType

Constructor & Destructor Documentation

MediatorCollegue ( Mediator myMediator = 0)
~MediatorCollegue ( )
virtual

Member Function Documentation

virtual void doOnMediatorCallBack ( MediatorEvent event)
pure virtual

Is called when the mediator informs this collegue that an event has to be performed by this collegue instance.

void informMediator ( MediatorEvent event)

Calls the mediator that this collegue has performed something.

The event and the instance of this class is handed over.

void setMediator ( Mediator myMediator)
protected

Sets the own mediator.

Useful if mediator is unknown in initialization.

Parameters
myMediator

Member Data Documentation

const InformMediatorType DEFAULT_INFORM_MEDIATOR_TYPE = 0
static

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