OpenDaVINCI  4.15.3
odcontext::base::ControlledContainerConferenceForSystemUnderTest Class Reference

#include <ControlledContainerConferenceForSystemUnderTest.h>

Inheritance diagram for odcontext::base::ControlledContainerConferenceForSystemUnderTest:
Inheritance graph

Public Member Functions

virtual ~ControlledContainerConferenceForSystemUnderTest ()
 
virtual void send (odcore::data::Container &container) const
 
virtual void nextContainer (odcore::data::Container &c)
 
BlockableContainerReceivergetBlockableContainerReceiver ()
 
virtual void setContainerListener (ContainerListener *cl)
 
ContainerListenergetContainerListener ()
 
void setSenderStamp (const uint32_t &senderStamp)
 
uint32_t getSenderStamp () const
 

Protected Member Functions

 ControlledContainerConferenceForSystemUnderTest (const string &address, const uint32_t &port, BlockableContainerReceiver &bcl, odcore::io::conference::ContainerObserver &receiveFromObserver)
 
void receive (odcore::data::Container &c)
 
bool hasContainerListener () const
 

Friends

class ControlledContainerConferenceFactory
 

Detailed Description

This class provides a controlled container conference.

Constructor & Destructor Documentation

odcontext::base::ControlledContainerConferenceForSystemUnderTest::ControlledContainerConferenceForSystemUnderTest ( const string &  address,
const uint32_t &  port,
BlockableContainerReceiver bcl,
odcore::io::conference::ContainerObserver receiveFromObserver 
)
protected

Constructor.

Parameters
addressCreate controlled container conference for this address.
portCreate controlled container conference for this port.
bclBlockableContainerListener to which we send our Containers.
receiveFromObserverContainerObserver which delivers incoming Containers to us.

References odcore::io::conference::ContainerObserver::setContainerListener().

odcontext::base::ControlledContainerConferenceForSystemUnderTest::~ControlledContainerConferenceForSystemUnderTest ( )
virtual

Member Function Documentation

BlockableContainerReceiver & odcontext::base::ControlledContainerConferenceForSystemUnderTest::getBlockableContainerReceiver ( )

This method returns the BlockableContainerReceiver.

Returns
BlockableContainerReceiver to which we send our data.
ContainerListener * odcore::io::conference::ContainerConference::getContainerListener ( )
inherited

This method returns the registered ContainerListener.

Returns
registered container listener or NULL.
uint32_t odcore::io::conference::ContainerConference::getSenderStamp ( ) const
inherited

This method returns the user-defined attribute used for stamping any container that is sent.

Returns
user-defined attribute used for stamping containers.

Referenced by send().

bool odcore::io::conference::ContainerConference::hasContainerListener ( ) const
protectedinherited

This method returns true if a ContainerListener is registered.

Returns
true, iff a ContainerListener is registered.
void odcontext::base::ControlledContainerConferenceForSystemUnderTest::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.

References odcore::io::conference::ContainerConference::receive(), and odcore::data::Container::setReceivedTimeStamp().

void odcore::io::conference::ContainerConference::receive ( odcore::data::Container c)
protectedinherited

This method can be called from any subclass to distribute a newly received container.

Parameters
cContainer to be distributed.

References odcore::io::conference::ContainerListener::nextContainer().

Referenced by nextContainer(), and odcore::base::module::ManagedClientModuleContainerConference::receiveFromLocal().

void odcore::io::conference::ContainerConference::setContainerListener ( ContainerListener cl)
virtualinherited

This method sets or unsets a container listener.

Parameters
clContainerListener to be set. If set to NULL, observing is suspended.

Implements odcore::io::conference::ContainerObserver.

void odcore::io::conference::ContainerConference::setSenderStamp ( const uint32_t &  senderStamp)
inherited

This method sets a user-defined attribute to be used for stamping any container that is sent.

Parameters
senderStampUser-defined attribute used for stamping containers.

Friends And Related Function Documentation