GenericSink Class Reference

#include <genericSink.h>

Inheritance diagram for GenericSink:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 GenericSink ()
void setup (uint v, uint time, uint no_nodes)
void process_event (IrisEvent *e)
string toString () const
string print_stats () const
void set_output_path (string outpath)

Public Attributes

ofstream out_file
uint address
vector< bool > ready
unsigned int packets
bool sending

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
string out_filename
uint last_vc
unsigned int stat_packets_in
double stat_min_pkt_latency
ullint stat_last_packet_in_cycle
ullint stat_last_packet_out_cycle
ullint stat_total_lat
ullint stat_hop_count
ullint stat_packets_out


Detailed Description

Definition at line 19 of file genericSink.h.


Constructor & Destructor Documentation

GenericSink::GenericSink (  ) 

Definition at line 13 of file genericSink.cc.

References NetworkComponent::name, and out_filename.


Member Function Documentation

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

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

Definition at line 119 of file genericSink.cc.

Referenced by process_event().

Here is the caller graph for this function:

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

Definition at line 127 of file genericSink.cc.

References _DBG, ready, IrisEvent::vc, and vcs.

Referenced by process_event().

Here is the caller graph for this function:

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

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

Implements Processor.

Definition at line 59 of file genericSink.cc.

References handle_new_packet_event(), handle_out_pull_event(), handle_ready_event(), NEW_PACKET_EVENT, OUT_PULL_EVENT, READY_EVENT, and IrisEvent::type.

Here is the call graph for this function:

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

Implements Processor.

Definition at line 51 of file genericSink.cc.

References NetworkComponent::node_ip, and out_filename.

void GenericSink::setup ( uint  v,
uint  time,
uint  no_nodes 
) [virtual]

string GenericSink::toString (  )  const [virtual]

Reimplemented from Processor.

Definition at line 143 of file genericSink.cc.

References address, and out_filename.


Member Data Documentation

Reimplemented from NetworkComponent.

Definition at line 47 of file genericSink.h.

Referenced by setup(), and toString().

Definition at line 26 of file genericSink.h.

Referenced by setup().

Definition at line 24 of file genericSink.h.

Referenced by setup().

Definition at line 23 of file genericSink.h.

Referenced by setup().

Definition at line 46 of file genericSink.h.

Referenced by handle_new_packet_event().

string GenericSink::out_filename [private]

Definition at line 25 of file genericSink.h.

Referenced by GenericSink(), handle_new_packet_event(), set_output_path(), and toString().

unsigned int GenericSink::packets

Definition at line 49 of file genericSink.h.

vector<bool> GenericSink::ready

Definition at line 48 of file genericSink.h.

Referenced by handle_ready_event(), and setup().

Definition at line 50 of file genericSink.h.

Definition at line 33 of file genericSink.h.

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

Definition at line 30 of file genericSink.h.

Referenced by handle_new_packet_event(), and print_stats().

Definition at line 31 of file genericSink.h.

Referenced by print_stats(), and setup().

Definition at line 29 of file genericSink.h.

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

unsigned int GenericSink::stat_packets_in [private]

Definition at line 28 of file genericSink.h.

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

Definition at line 34 of file genericSink.h.

Referenced by print_stats().

Definition at line 32 of file genericSink.h.

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

Definition at line 22 of file genericSink.h.

Referenced by handle_ready_event(), and setup().


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

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