GenericPktGen Class Reference

#include <genericPktGen.h>

Inheritance diagram for GenericPktGen:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 GenericPktGen ()
 ~GenericPktGen ()
void setup (uint no_nodes, uint vcs, uint max_sim_time)
void finish ()
void process_event (IrisEvent *e)
string toString () const
string print_stats () const
void set_trace_filename (string filename)
void set_no_vcs (uint v)
void set_output_path (string outpath)

Public Attributes

unsigned int stat_packets_out
unsigned int stat_packets_in
double stat_min_pkt_latency
double stat_last_packet_out_cycle
double stat_last_packet_in_cycle
ullint stat_total_lat
ullint stat_hop_count
vector< bool > ready
bool sending
ullint max_time
vector< uintmc_node_ip
ullint lastSentTime
const gsl_rng_type * T
gsl_rng * arate_gen
gsl_rng * dest_gen
gsl_rng * plen_gen

Private Member Functions

void handle_new_packet_event (IrisEvent *e)
void handle_ready_event (IrisEvent *e)
void handle_out_pull_event (IrisEvent *e)

Private Attributes

uint vcs
uint no_nodes
ullint max_sim_time
uint irt
string out_filename
string trace_name
uint no_outstanding
ofstream out_file
ifstream * trace_filename
unsigned int last_vc


Detailed Description

Definition at line 54 of file genericPktGen.h.


Constructor & Destructor Documentation

GenericPktGen::GenericPktGen (  ) 

=====================================================================================

Filename: genericPktGen.cc

Description: Implements the stochastic pkt gen class.

Version: 1.0 Created: 02/20/2010 02:09:13 PM Revision: none Compiler: gcc

Author: Mitchelle Rasquinha (), mitchelle.rasquinha@gatech.edu Company: Georgia Institute of Technology

=====================================================================================

Definition at line 26 of file genericPktGen.cc.

References last_vc, NetworkComponent::name, Processor::ni_recv, out_filename, and sending.

GenericPktGen::~GenericPktGen (  ) 

Definition at line 36 of file genericPktGen.cc.

References arate_gen, dest_gen, out_file, and plen_gen.


Member Function Documentation

void GenericPktGen::finish (  ) 

Definition at line 118 of file genericPktGen.cc.

References out_file, and trace_filename.

void GenericPktGen::handle_new_packet_event ( IrisEvent e  )  [private]

void GenericPktGen::handle_out_pull_event ( IrisEvent e  )  [private]

void GenericPktGen::handle_ready_event ( IrisEvent e  )  [private]

Definition at line 304 of file genericPktGen.cc.

References _DBG, Simulator::Now(), OUT_PULL_EVENT, NetworkComponent::process_event(), ready, Simulator::Schedule(), sending, IrisEvent::vc, and vcs.

Referenced by process_event().

Here is the call graph for this function:

Here is the caller graph for this function:

string GenericPktGen::print_stats ( void   )  const [virtual]

void GenericPktGen::process_event ( IrisEvent e  )  [virtual]

void GenericPktGen::set_no_vcs ( uint  v  ) 

Definition at line 52 of file genericPktGen.cc.

References vcs.

void GenericPktGen::set_output_path ( string  outpath  )  [virtual]

Implements Processor.

Definition at line 103 of file genericPktGen.cc.

References _DBG_NOARG, NetworkComponent::node_ip, out_file, and out_filename.

void GenericPktGen::set_trace_filename ( string  filename  ) 

Definition at line 45 of file genericPktGen.cc.

References trace_name.

void GenericPktGen::setup ( uint  no_nodes,
uint  vcs,
uint  max_sim_time 
) [virtual]

string GenericPktGen::toString (  )  const [virtual]

Reimplemented from Processor.

Definition at line 328 of file genericPktGen.cc.

References NetworkComponent::address, NetworkComponent::node_ip, and ready.


Member Data Documentation

Definition at line 102 of file genericPktGen.h.

Referenced by handle_out_pull_event(), setup(), and ~GenericPktGen().

Definition at line 103 of file genericPktGen.h.

Referenced by handle_out_pull_event(), setup(), and ~GenericPktGen().

Definition at line 61 of file genericPktGen.h.

Referenced by handle_out_pull_event(), and setup().

unsigned int GenericPktGen::last_vc [private]

Definition at line 67 of file genericPktGen.h.

Referenced by GenericPktGen(), handle_out_pull_event(), and setup().

Definition at line 98 of file genericPktGen.h.

Referenced by handle_out_pull_event(), and setup().

Definition at line 60 of file genericPktGen.h.

Referenced by setup().

Definition at line 86 of file genericPktGen.h.

Definition at line 95 of file genericPktGen.h.

Definition at line 59 of file genericPktGen.h.

Referenced by handle_out_pull_event(), and setup().

Definition at line 64 of file genericPktGen.h.

ofstream GenericPktGen::out_file [private]

string GenericPktGen::out_filename [private]

Definition at line 62 of file genericPktGen.h.

Referenced by GenericPktGen(), handle_new_packet_event(), and set_output_path().

Definition at line 104 of file genericPktGen.h.

Referenced by setup(), and ~GenericPktGen().

vector< bool > GenericPktGen::ready

Definition at line 84 of file genericPktGen.h.

Referenced by handle_out_pull_event(), handle_ready_event(), setup(), and toString().

Definition at line 85 of file genericPktGen.h.

Referenced by GenericPktGen(), handle_out_pull_event(), and handle_ready_event().

Definition at line 82 of file genericPktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 80 of file genericPktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 79 of file genericPktGen.h.

Referenced by handle_out_pull_event(), print_stats(), and setup().

Definition at line 78 of file genericPktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 77 of file genericPktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 76 of file genericPktGen.h.

Referenced by handle_out_pull_event(), print_stats(), and setup().

Definition at line 81 of file genericPktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

const gsl_rng_type* GenericPktGen::T

Definition at line 101 of file genericPktGen.h.

Referenced by setup().

ifstream* GenericPktGen::trace_filename [private]

Definition at line 66 of file genericPktGen.h.

Referenced by finish().

string GenericPktGen::trace_name [private]

Definition at line 63 of file genericPktGen.h.

Referenced by set_trace_filename().

Definition at line 58 of file genericPktGen.h.

Referenced by handle_out_pull_event(), handle_ready_event(), set_no_vcs(), and setup().


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

Generated on Tue Oct 19 17:22:15 2010 for IRIS by  doxygen 1.5.8