OpenDaVINCI  4.15.3
odcore::dmcp::connection::Client Class Reference

#include <Client.h>

Inheritance diagram for odcore::dmcp::connection::Client:
Inheritance graph

Public Member Functions

 Client (const odcore::data::dmcp::ModuleDescriptor &moduleDescriptor, const odcore::data::dmcp::ServerInformation &serverInformation)
 
virtual ~Client ()
 
void initialize ()
 
void sendModuleExitCode (const odcore::data::dmcp::ModuleExitCodeMessage::ModuleExitCode &me)
 
void sendModuleState (const odcore::data::dmcp::ModuleStateMessage::ModuleState &me)
 
void sendStatistics (const odcore::data::dmcp::RuntimeStatistic &rs)
 
odcore::base::KeyValueConfiguration getConfiguration ()
 
const
odcore::data::dmcp::PulseMessage 
getPulseMessage ()
 
void sendPulseAck ()
 
void sendPulseAckContainers (const vector< odcore::data::Container > &listOfContainers)
 
void setSupercomponentStateListener (SupercomponentStateListener *listener)
 
bool isConnected ()
 

Protected Member Functions

void sendConfigurationRequest ()
 
virtual void nextContainer (odcore::data::Container &c)
 
virtual void handleConnectionError ()
 
void handleConfiguration (odcore::data::Configuration &configuration)
 
void waitForConfiguration ()
 
bool isConfigured ()
 

Constructor & Destructor Documentation

odcore::dmcp::connection::Client::Client ( const odcore::data::dmcp::ModuleDescriptor &  moduleDescriptor,
const odcore::data::dmcp::ServerInformation &  serverInformation 
)
odcore::dmcp::connection::Client::~Client ( )
virtual

Member Function Documentation

KeyValueConfiguration odcore::dmcp::connection::Client::getConfiguration ( )
const odcore::data::dmcp::PulseMessage odcore::dmcp::connection::Client::getPulseMessage ( )
void odcore::dmcp::connection::Client::handleConfiguration ( odcore::data::Configuration &  configuration)
protected
void odcore::dmcp::connection::Client::handleConnectionError ( )
protectedvirtual
void odcore::dmcp::connection::Client::initialize ( )
bool odcore::dmcp::connection::Client::isConfigured ( )
protected
bool odcore::dmcp::connection::Client::isConnected ( )
void odcore::dmcp::connection::Client::nextContainer ( odcore::data::Container c)
protectedvirtual

This method is called whenever a new container occurs.

Parameters
cContainer that has been occured.

Implements odcore::io::conference::ContainerListener.

References odcore::data::Container::getData(), and odcore::data::Container::getDataType().

void odcore::dmcp::connection::Client::sendConfigurationRequest ( )
protected
void odcore::dmcp::connection::Client::sendModuleExitCode ( const odcore::data::dmcp::ModuleExitCodeMessage::ModuleExitCode &  me)
void odcore::dmcp::connection::Client::sendModuleState ( const odcore::data::dmcp::ModuleStateMessage::ModuleState &  me)
void odcore::dmcp::connection::Client::sendPulseAck ( )

This method sends the PulseAckMessage to supercomponent.

void odcore::dmcp::connection::Client::sendPulseAckContainers ( const vector< odcore::data::Container > &  listOfContainers)

This method sends the PulseAckMessage to supercomponent including all containers to be sent from this component.

Parameters
listOfContainersList of containers to be sent.
void odcore::dmcp::connection::Client::sendStatistics ( const odcore::data::dmcp::RuntimeStatistic &  rs)
void odcore::dmcp::connection::Client::setSupercomponentStateListener ( SupercomponentStateListener listener)
void odcore::dmcp::connection::Client::waitForConfiguration ( )
protected