ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SinkAgent Class Reference

#include <diff_sink.h>

Inheritance diagram for SinkAgent:

Agent Connector NsObject TclObject Handler List of all members.

Public Member Functions

 SinkAgent ()
int command (int argc, const char *const *argv)
virtual void timeout (int)
void report ()
void recv (Packet *, Handler *)
void reset ()
void set_addr (ns_addr_t)
int get_pk_count ()
void incr_pk_count ()
Packetcreate_packet ()

Protected Member Functions

void Terminate ()
void bcast_interest ()
void data_ready ()
void start ()
void stop ()
virtual void sendpkt ()

Protected Attributes

bool APP_DUP_
bool periodic_
bool always_max_rate_
int pk_count
unsigned int data_type_
int num_recv
int num_send
int RecvPerSec
double cum_delay
double last_arrival_time
Data_Hash_Table DataTable
int running_
int random_
int maxpkts_
double interval_
int simple_report_rate
int data_counter
Sink_Timer sink_timer_
Periodic_Timer periodic_timer_
Report_Timer report_timer_


class Periodic_Timer

Constructor & Destructor Documentation


Member Function Documentation

void SinkAgent::bcast_interest   [protected]

int SinkAgent::command int    argc,
const char *const *    argv

Reimplemented from Agent.

Packet * SinkAgent::create_packet  

void SinkAgent::data_ready   [protected]

int SinkAgent::get_pk_count  

void SinkAgent::incr_pk_count  

void SinkAgent::recv Packet  ,

Reimplemented from Agent.

void SinkAgent::report  

void SinkAgent::reset   [virtual]

Reimplemented from NsObject.

void SinkAgent::sendpkt   [protected, virtual]

void SinkAgent::set_addr ns_addr_t   

void SinkAgent::start   [protected]

void SinkAgent::stop   [protected]

void SinkAgent::Terminate   [protected]

void SinkAgent::timeout int    [virtual]

Reimplemented from Agent.

Friends And Related Function Documentation

friend class Periodic_Timer [friend]

Member Data Documentation

bool SinkAgent::always_max_rate_ [protected]

bool SinkAgent::APP_DUP_ [protected]

double SinkAgent::cum_delay [protected]

int SinkAgent::data_counter [protected]

unsigned int SinkAgent::data_type_ [protected]

Data_Hash_Table SinkAgent::DataTable [protected]

double SinkAgent::interval_ [protected]

double SinkAgent::last_arrival_time [protected]

int SinkAgent::maxpkts_ [protected]

int SinkAgent::num_recv [protected]

int SinkAgent::num_send [protected]

bool SinkAgent::periodic_ [protected]

Periodic_Timer SinkAgent::periodic_timer_ [protected]

int SinkAgent::pk_count [protected]

int SinkAgent::random_ [protected]

int SinkAgent::RecvPerSec [protected]

Report_Timer SinkAgent::report_timer_ [protected]

int SinkAgent::running_ [protected]

int SinkAgent::simple_report_rate [protected]

Sink_Timer SinkAgent::sink_timer_ [protected]

The documentation for this class was generated from the following files:
This document is generated by doxygen.