RTP Trace System  1.0
SimulatorTask Class Reference

Simulator Task. More...

Inheritance diagram for SimulatorTask:
Coral::ManagedStreamInterface

List of all members.

Public Member Functions

 SimulatorTask (BandwidthManager *bwManager, ServiceLevelAgreement *sla)
 ~SimulatorTask ()
bool open (const char *name, const cardinal headerSize, const cardinal maxPacketSize)
void close ()
AbstractQoSDescriptiongetQoSDescription (const card64 offset)
void updateQuality (const AbstractQoSDescription *aqd)
void lock ()
void unlock ()
cardinal nextStep ()

Public Attributes

double FrameRate
TDTFMediaReader Reader
TraceEncoderEncoder
BandwidthManagerBandwidthMgr
ServiceLevelAgreementSLA
cardinal Layers
card64 TotalBandwidth
card64 TotalBandwidthDelay1
card64 Bandwidth [RTPConstants::RTPMaxQualityLayers]
card64 BandwidthDelay1 [RTPConstants::RTPMaxQualityLayers]
double BufferDelayMS [RTPConstants::RTPMaxQualityLayers]
cardinal BufferDelay [RTPConstants::RTPMaxQualityLayers]
card8 TrafficClass [RTPConstants::RTPMaxQualityLayers]
TrafficPolicer Policer [RTPConstants::RTPMaxQualityLayers]
cardinal Flushes
cardinal SessionID
cardinal StreamID
double CostFactor [TrafficClassValues::MaxValues]
card64 Sent [TrafficClassValues::MaxValues]
cardinal HeaderSize
cardinal MaxPacketSize

Static Public Attributes

static card64 SimulatorTime = 1000000000

Private Member Functions

cardinal handleNextFrame ()

Private Attributes

card64 LastCall

Detailed Description

Simulator Task.

This class is a simulator task.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

Constructor.


Member Function Documentation

Close stream.

Implementation of ManagedStreamInterface's getQoSDescription().

See also:
ManagedStreamInterface::getQoSDescription

Implements Coral::ManagedStreamInterface.

void SimulatorTask::lock ( ) [virtual]

Implementation of ManagedStreamInterface's lock().

See also:
ManagedStreamInterface::lock

Implements Coral::ManagedStreamInterface.

Do next simulation step.

Returns:
0, if no operation was necessary; 1, if operation was successful; >1 otherwise (end of stream).
bool SimulatorTask::open ( const char *  name,
const cardinal  headerSize,
const cardinal  maxPacketSize 
)

Open stream.

Parameters:
nameTDTF file name.
headerSizePacket header size.
maxPacketSizeMaximum packet size (e.g. 1500 for ethernet).
Returns:
true, if operation was successful; false otherwise.
void SimulatorTask::unlock ( ) [virtual]

Implementation of ManagedStreamInterface's unlock().

See also:
ManagedStreamInterface::unlock

Implements Coral::ManagedStreamInterface.

void SimulatorTask::updateQuality ( const AbstractQoSDescription aqd) [virtual]

Implementation of ManagedStreamInterface's updateQuality().

See also:
ManagedStreamInterface::updateQuality

Implements Coral::ManagedStreamInterface.


Member Data Documentation

card64 SimulatorTask::Bandwidth[RTPConstants::RTPMaxQualityLayers]
card64 SimulatorTask::BandwidthDelay1[RTPConstants::RTPMaxQualityLayers]
cardinal SimulatorTask::BufferDelay[RTPConstants::RTPMaxQualityLayers]
double SimulatorTask::BufferDelayMS[RTPConstants::RTPMaxQualityLayers]
double SimulatorTask::CostFactor[TrafficClassValues::MaxValues]
TrafficPolicer SimulatorTask::Policer[RTPConstants::RTPMaxQualityLayers]
card64 SimulatorTask::Sent[TrafficClassValues::MaxValues]
card64 SimulatorTask::SimulatorTime = 1000000000 [static]
card8 SimulatorTask::TrafficClass[RTPConstants::RTPMaxQualityLayers]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines