OpenDaVINCI  4.16.0
odcontext::base::ControlledContainerConferenceFactory Class Reference

#include <ControlledContainerConferenceFactory.h>

Inheritance diagram for odcontext::base::ControlledContainerConferenceFactory:
Inheritance graph

Public Types

enum  { MULTICAST_PORT = 12175 }
 

Public Member Functions

 ControlledContainerConferenceFactory ()
 
virtual ~ControlledContainerConferenceFactory ()
 
virtual std::shared_ptr
< odcore::io::conference::ContainerConference
getContainerConference (const string &address, const uint32_t &port=odcore::io::conference::ContainerConferenceFactory::MULTICAST_PORT)
 
virtual void sendToSystemsUnderTest (odcore::data::Container &c)
 
virtual void add (odcore::io::conference::ContainerListener *cl)
 
virtual void nextContainer (odcore::data::Container &c)
 

Static Public Member Functions

static ContainerConferenceFactorygetInstance ()
 

Static Protected Member Functions

static void setSingleton (ContainerConferenceFactory *singleton)
 

Detailed Description

This class provides controlled ContainerConferences.

Member Enumeration Documentation

anonymous enum
inherited
Enumerator
MULTICAST_PORT 

Constructor & Destructor Documentation

odcontext::base::ControlledContainerConferenceFactory::ControlledContainerConferenceFactory ( )
odcontext::base::ControlledContainerConferenceFactory::~ControlledContainerConferenceFactory ( )
virtual

Member Function Documentation

void odcontext::base::ControlledContainerConferenceFactory::add ( odcore::io::conference::ContainerListener cl)
virtual

This method adds a ContainerListener to receive data from a system under test.

Parameters
clContainerListener to add.

Implements odcontext::base::ControlledContainerConference.

std::shared_ptr< ContainerConference > odcontext::base::ControlledContainerConferenceFactory::getContainerConference ( const string &  address,
const uint32_t &  port = odcore::io::conference::ContainerConferenceFactory::MULTICAST_PORT 
)
virtual

This method returns a new ContainerConference.

Parameters
addressUse address for joining.
portUse port for joining. If omitted, MULTICAST_PORT will be used.
Returns
ContainerConference or NULL.

Reimplemented from odcore::io::conference::ContainerConferenceFactory.

ContainerConferenceFactory & odcore::io::conference::ContainerConferenceFactory::getInstance ( )
staticinherited
void odcontext::base::ControlledContainerConferenceFactory::nextContainer ( odcore::data::Container c)
virtual

This method is called whenever a new container occurs.

Parameters
cContainer that has been occured.

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

void odcontext::base::ControlledContainerConferenceFactory::sendToSystemsUnderTest ( odcore::data::Container c)
virtual

This method sends a Container to all created ControlledContainerConferences and thus to all running systems under test.

Parameters
cContainer to send.

Implements odcontext::base::SendContainerToSystemsUnderTest.

References odcore::data::Container::getSampleTimeStamp(), odcore::data::Container::getSentTimeStamp(), odcore::data::Container::setSampleTimeStamp(), odcore::data::Container::setSentTimeStamp(), and odcore::data::TimeStamp::toMicroseconds().

void odcore::io::conference::ContainerConferenceFactory::setSingleton ( ContainerConferenceFactory singleton)
staticprotectedinherited

This method sets the singleton pointer.

Parameters
singletonSingleton to be used.

Referenced by ControlledContainerConferenceFactory(), and odcore::io::conference::ContainerConferenceFactory::getInstance().