OpenDaVINCI  4.16.0
odcontext::base::PlaybackContainer Class Reference

#include <PlaybackContainer.h>

Inheritance diagram for odcontext::base::PlaybackContainer:
Inheritance graph

Public Member Functions

 PlaybackContainer (const float &freq, const string &urlFileName, const uint32_t &memorySegmentSize, const uint32_t &numberOfSegments)
 
virtual ~PlaybackContainer ()
 
virtual void setup ()
 
virtual void tearDown ()
 
virtual void step (const odcore::wrapper::Time &t, SendContainerToSystemsUnderTest &sender)
 
virtual void nextContainer (odcore::data::Container &c)
 
odcore::base::FIFOQueuegetFIFO ()
 
odcore::base::KeyValueDataStoregetKeyValueDataStore ()
 
bool needsExecution (const odcore::wrapper::Time &t) const
 
virtual bool hasFinished () const
 

Detailed Description

This class can be used to playback all recorded Containers.

Constructor & Destructor Documentation

odcontext::base::PlaybackContainer::PlaybackContainer ( const float &  freq,
const string &  urlFileName,
const uint32_t &  memorySegmentSize,
const uint32_t &  numberOfSegments 
)

Constructor.

Parameters
freqFrequency to be used.
urlURL of the file to be used for storing containers.
odcontext::base::PlaybackContainer::~PlaybackContainer ( )
virtual

Member Function Documentation

odcore::base::FIFOQueue & odcontext::base::SystemContextComponent::getFIFO ( )
inherited

This method returns the FIFO containing received containers.

Returns
FIFO containing received containers.

Referenced by odcontext::base::RecordingContainer::report(), and step().

odcore::base::KeyValueDataStore & odcontext::base::SystemContextComponent::getKeyValueDataStore ( )
inherited

This method returns the key/value-data store.

Returns
Key/value-datastore.
bool odcontext::base::Runner::hasFinished ( ) const
virtualinherited

This method should be overridden in subclasses to add an additional condition to the time needsExecution indicating whether an application has finished. This implementation simply returns always true.

Returns
true.

Reimplemented in odcontext::base::TimeTriggeredConferenceClientModuleRunner.

Referenced by odcontext::base::Runner::needsExecution().

void odcontext::base::SystemContextComponent::nextContainer ( odcore::data::Container c)
virtualinherited

This method is called whenever a new container occurs.

Parameters
cContainer that has been occured.

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

References odcore::base::FIFOQueue::add(), and odcore::data::Container::getDataType().

void odcontext::base::PlaybackContainer::setup ( )
virtual

This method is called to setup this component.

Implements odcontext::base::SystemContextComponent.

void odcontext::base::PlaybackContainer::step ( const odcore::wrapper::Time t,
SendContainerToSystemsUnderTest sender 
)
virtual

This method is called whenever a step for this system's part must be computed.

Parameters
tCurrent system time.
senderSender for containers to be delivered to Systems Under Tests.

Implements odcontext::base::SystemFeedbackComponent.

References odcore::base::FIFOQueue::clear(), odcontext::base::SystemContextComponent::getFIFO(), and odcontext::base::SendContainerToSystemsUnderTest::sendToSystemsUnderTest().

void odcontext::base::PlaybackContainer::tearDown ( )
virtual

This method is called to tear down this component.

Implements odcontext::base::SystemContextComponent.