MAK RTIspy API Documentation for HLA 1516
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
DtTrafficStats Class Reference
+ Collaboration diagram for DtTrafficStats:

Public Member Functions

 DtTrafficStats ()
void reset ()
void resetFomStats ()
const DtString string () const
const DtString toDtString () const
void msgSent (unsigned int fedId, DtRtiMsgKind msgKind, unsigned int size, double sendTime)
void msgRcvd (unsigned int fedId, DtRtiMsgKind msgKind, unsigned int size, double recvTime)
void rtiAmbCalled (const DtRtiAmbAPIType callName, double callTime)
void fedAmbCalled (const DtFedAmbAPIType callName, double callTime)
const DtMsgStatsgetMsgStats (DtRtiMsgKind msgKind) const
void addObject (bool isRegistered, unsigned int objHandle, const DtString &theClassName, const DtString &theObjectName, DtObjectClassHandle theClassHandle)
void addInteraction (bool isSent, unsigned int interHandle, const DtString &theInterName)
void recordUpdate (bool isSent, unsigned int msgSize, double time, DtObjectInstanceHandle handle, const DtString &name, DtObjectClassHandle classHandle, const DtString &objectClassName)
void recordInteraction (bool isSent, unsigned int msgSize, double time, DtInteractionClassHandle handle, const DtString &name)

Static Public Member Functions

static const DtString header ()

Public Attributes

unsigned int myTotalMsgsReceived
unsigned int myNumAnonMsgs
unsigned int myNumSentMsgs
unsigned int myNumFedMsgs
unsigned int myTotalBytesReceived
unsigned int myTotalBytesSent
double myAveMsgSize
unsigned int myMaxMsgSize
unsigned int myMinMsgSize
MAKRti::DtClock myCollectionPeriod
MAKRti::DtTime myTotalSendTime
MAKRti::DtTime myAveSendTime
MAKRti::DtTime myMinSendTime
MAKRti::DtTime myMaxSendTime
MAKRti::DtTime myTotalReadTime
MAKRti::DtTime myAveReadTime
MAKRti::DtTime myMinReadTime
MAKRti::DtTime myMaxReadTime
MAKRti::DtTime myTotalApiTime
MAKRti::DtTime myTotalCallbackTime
std::map< DtRtiMsgKind,
DtMsgStats
myMsgDataByKind
std::map< DtRtiAmbAPIType,
DtRtiApiStats
myApiDataByCallName
std::map< DtFedAmbAPIType,
DtRtiApiStats
myFedDataByCallName
std::map< unsigned int,
DtObjIntStats
myObjectData
std::map< unsigned int,
DtObjIntStats
myInteractionData
std::set< unsigned int > myObjectInstanceNamesToSend
std::set< unsigned int > myChangedPubSubTransOrdObjectClassHandlesSet
std::set< unsigned int > myChangedPubSubTransOrdInteractionHandlesSet
std::map< unsigned int,
unsigned int > 
myParameterHandleByInteractionHandleMap

Protected Member Functions

void updateMsgStats (bool isSentMsg, DtRtiMsgKind msgKind, unsigned int size, double time)
void checkInternalState () const
bool containsObjectInstance (unsigned int objectInstanceHandle)
bool containsInteractionClass (unsigned int interactionClassHandle)

Constructor & Destructor Documentation

DtTrafficStats::DtTrafficStats ( )
inline

References reset().

Member Function Documentation

void DtTrafficStats::addInteraction ( bool  isSent,
unsigned int  interHandle,
const DtString &  theInterName 
)
void DtTrafficStats::addObject ( bool  isRegistered,
unsigned int  objHandle,
const DtString &  theClassName,
const DtString &  theObjectName,
DtObjectClassHandle  theClassHandle 
)
void DtTrafficStats::checkInternalState ( ) const
protected
bool DtTrafficStats::containsInteractionClass ( unsigned int  interactionClassHandle)
protected

References myInteractionData.

bool DtTrafficStats::containsObjectInstance ( unsigned int  objectInstanceHandle)
protected

References myObjectData.

void DtTrafficStats::fedAmbCalled ( const DtFedAmbAPIType  callName,
double  callTime 
)
const DtMsgStats * DtTrafficStats::getMsgStats ( DtRtiMsgKind  msgKind) const

References myMsgDataByKind.

const DtString DtTrafficStats::header ( )
static
void DtTrafficStats::msgRcvd ( unsigned int  fedId,
DtRtiMsgKind  msgKind,
unsigned int  size,
double  recvTime 
)
void DtTrafficStats::msgSent ( unsigned int  fedId,
DtRtiMsgKind  msgKind,
unsigned int  size,
double  sendTime 
)
void DtTrafficStats::recordInteraction ( bool  isSent,
unsigned int  msgSize,
double  time,
DtInteractionClassHandle  handle,
const DtString &  name 
)
void DtTrafficStats::recordUpdate ( bool  isSent,
unsigned int  msgSize,
double  time,
DtObjectInstanceHandle  handle,
const DtString &  name,
DtObjectClassHandle  classHandle,
const DtString &  objectClassName 
)
void DtTrafficStats::reset ( )
void DtTrafficStats::resetFomStats ( )
void DtTrafficStats::rtiAmbCalled ( const DtRtiAmbAPIType  callName,
double  callTime 
)
const DtString DtTrafficStats::string ( ) const
const DtString DtTrafficStats::toDtString ( ) const
void DtTrafficStats::updateMsgStats ( bool  isSentMsg,
DtRtiMsgKind  msgKind,
unsigned int  size,
double  time 
)
protected

Member Data Documentation

std::map< DtRtiAmbAPIType, DtRtiApiStats > DtTrafficStats::myApiDataByCallName
double DtTrafficStats::myAveMsgSize
MAKRti::DtTime DtTrafficStats::myAveReadTime

Referenced by reset(), and string().

MAKRti::DtTime DtTrafficStats::myAveSendTime

Referenced by reset(), and string().

std::set<unsigned int> DtTrafficStats::myChangedPubSubTransOrdInteractionHandlesSet
std::set<unsigned int> DtTrafficStats::myChangedPubSubTransOrdObjectClassHandlesSet
MAKRti::DtClock DtTrafficStats::myCollectionPeriod

Referenced by reset(), and string().

std::map< DtFedAmbAPIType, DtRtiApiStats > DtTrafficStats::myFedDataByCallName
std::map< unsigned int, DtObjIntStats > DtTrafficStats::myInteractionData
unsigned int DtTrafficStats::myMaxMsgSize
MAKRti::DtTime DtTrafficStats::myMaxReadTime

Referenced by reset(), and string().

MAKRti::DtTime DtTrafficStats::myMaxSendTime

Referenced by reset(), and string().

unsigned int DtTrafficStats::myMinMsgSize
MAKRti::DtTime DtTrafficStats::myMinReadTime

Referenced by reset(), and string().

MAKRti::DtTime DtTrafficStats::myMinSendTime

Referenced by reset(), and string().

std::map< DtRtiMsgKind, DtMsgStats > DtTrafficStats::myMsgDataByKind
unsigned int DtTrafficStats::myNumAnonMsgs
unsigned int DtTrafficStats::myNumFedMsgs

Referenced by msgRcvd(), reset(), string(), and toDtString().

unsigned int DtTrafficStats::myNumSentMsgs

Referenced by msgSent(), reset(), string(), and toDtString().

std::map< unsigned int, DtObjIntStats > DtTrafficStats::myObjectData
std::set< unsigned int > DtTrafficStats::myObjectInstanceNamesToSend
std::map< unsigned int, unsigned int > DtTrafficStats::myParameterHandleByInteractionHandleMap

Referenced by reset(), and resetFomStats().

MAKRti::DtTime DtTrafficStats::myTotalApiTime
unsigned int DtTrafficStats::myTotalBytesReceived
unsigned int DtTrafficStats::myTotalBytesSent
MAKRti::DtTime DtTrafficStats::myTotalCallbackTime
unsigned int DtTrafficStats::myTotalMsgsReceived
MAKRti::DtTime DtTrafficStats::myTotalReadTime

Referenced by msgRcvd(), reset(), and string().

MAKRti::DtTime DtTrafficStats::myTotalSendTime

Referenced by msgSent(), reset(), and string().


The documentation for this class was generated from the following files:

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)