Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
AggregStatisitcs Class Reference

#include <aggregation_formats.h>

Collaboration diagram for AggregStatisitcs:
Collaboration graph

Public Member Functions

 AggregStatisitcs ()
 
 AggregStatisitcs (int first_id, double first_time, u_short size, std::string label="")
 
std::pair< int, int > get_ids ()
 
u_short get_size ()
 
u_short get_count ()
 
void set_time (double time)
 
std::pair< double, double > get_times ()
 
void update_id_time_data (int last_packet, double time, u_short size, std::string label="")
 
std::string get_smart_label ()
 

Private Attributes

int packet_count
 
u_short data_size
 
std::pair< int, int > ids
 
std::pair< double, double > times
 
std::string smart_label
 

Detailed Description

AggregStatistic handles all statistical information for the result message. Times, packets count, aggregated data size...

Definition at line 241 of file aggregation_formats.h.

Constructor & Destructor Documentation

AggregStatisitcs::AggregStatisitcs ( )
inline

Definition at line 250 of file aggregation_formats.h.

AggregStatisitcs::AggregStatisitcs ( int  first_id,
double  first_time,
u_short  size,
std::string  label = "" 
)

Constructor taking number of first aggregated packet,its time and size

Definition at line 152 of file aggregation_formats.cpp.

References data_size, ids, packet_count, smart_label, and times.

Member Function Documentation

u_short AggregStatisitcs::get_count ( )

Get number of included packets

Definition at line 166 of file aggregation_formats.cpp.

References packet_count.

std::pair< int, int > AggregStatisitcs::get_ids ( )

Get order number of first and last aggregated packets

Definition at line 171 of file aggregation_formats.cpp.

References ids.

u_short AggregStatisitcs::get_size ( )

Get the sum of included packets' size

Definition at line 161 of file aggregation_formats.cpp.

References data_size.

std::string AggregStatisitcs::get_smart_label ( )

Smart label is label put in this class via Constructor. It is used for information not be obtained from this class. Desingated for Reassembling feature

Definition at line 198 of file aggregation_formats.cpp.

References smart_label.

std::pair< double, double > AggregStatisitcs::get_times ( )

Get both times - send and receive of message

Definition at line 181 of file aggregation_formats.cpp.

References times.

void AggregStatisitcs::set_time ( double  time)

Set the first time - message send time

Definition at line 176 of file aggregation_formats.cpp.

References times.

void AggregStatisitcs::update_id_time_data ( int  last_packet,
double  time,
u_short  size,
std::string  label = "" 
)

Update statistics with last packets number, time and size

Definition at line 186 of file aggregation_formats.cpp.

References data_size, ids, packet_count, smart_label, and times.

Member Data Documentation

u_short AggregStatisitcs::data_size
private

Definition at line 244 of file aggregation_formats.h.

Referenced by AggregStatisitcs(), get_size(), and update_id_time_data().

std::pair<int,int> AggregStatisitcs::ids
private

Definition at line 245 of file aggregation_formats.h.

Referenced by AggregStatisitcs(), get_ids(), and update_id_time_data().

int AggregStatisitcs::packet_count
private

Definition at line 243 of file aggregation_formats.h.

Referenced by AggregStatisitcs(), get_count(), and update_id_time_data().

std::string AggregStatisitcs::smart_label
private

Definition at line 247 of file aggregation_formats.h.

Referenced by AggregStatisitcs(), get_smart_label(), and update_id_time_data().

std::pair<double,double> AggregStatisitcs::times
private

Definition at line 246 of file aggregation_formats.h.

Referenced by AggregStatisitcs(), get_times(), set_time(), and update_id_time_data().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:57 for Sequence Chart Studio by  doxygen