GenericFlatMc Class Reference

#include <genericFlatMc.h>

Inheritance diagram for GenericFlatMc:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 GenericFlatMc ()
 ~GenericFlatMc ()
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_output_path (string outpath)

Public Attributes

unsigned int packets
ullint packets_out
uint last_vc
double min_pkt_latency
unsigned long long int waiting_at_injection
unsigned long long int max_time
vector< uintmc_node_ip
HighLevelPacketoutstanding_hlp

Private Member Functions

void handle_new_packet_event (IrisEvent *e)
void handle_ready_event (IrisEvent *e)
void handle_out_pull_event (IrisEvent *e)
void convertFromBitStream (Request *req, HighLevelPacket *hlp)

Private Attributes

uint vcs
uint no_nodes
unsigned long long int max_sim_time
ullint last_packet_in_cycle
ullint last_packet_out_cycle
ullint packets_in
deque< HighLevelPacketout_packets
string out_filename
ofstream out_file
vector< bool > ready
bool sending
long int packets_pending
deque< unsigned long long int > pending_packets_time
deque< HighLevelPacket * > pending_packets


Detailed Description

Definition at line 40 of file genericFlatMc.h.


Constructor & Destructor Documentation

GenericFlatMc::GenericFlatMc (  ) 

Definition at line 26 of file genericFlatMc.cc.

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

GenericFlatMc::~GenericFlatMc (  ) 

Definition at line 33 of file genericFlatMc.cc.

References out_file, pending_packets, and pending_packets_time.


Member Function Documentation

void GenericFlatMc::convertFromBitStream ( Request *  req,
HighLevelPacket hlp 
) [private]

void GenericFlatMc::finish (  ) 

Definition at line 92 of file genericFlatMc.cc.

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

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

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

Definition at line 235 of file genericFlatMc.cc.

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

Referenced by process_event().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements Processor.

Definition at line 269 of file genericFlatMc.cc.

References last_packet_in_cycle, last_packet_out_cycle, min_pkt_latency, packets_in, packets_out, and toString().

Here is the call graph for this function:

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

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

Implements Processor.

Definition at line 75 of file genericFlatMc.cc.

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

string GenericFlatMc::toString (  )  const [virtual]

Reimplemented from Processor.

Definition at line 257 of file genericFlatMc.cc.

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

Referenced by print_stats().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 47 of file genericFlatMc.h.

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

Definition at line 48 of file genericFlatMc.h.

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

Definition at line 70 of file genericFlatMc.h.

Referenced by handle_out_pull_event().

unsigned long long int GenericFlatMc::max_sim_time [private]

Definition at line 46 of file genericFlatMc.h.

Referenced by handle_ready_event(), and setup().

unsigned long long int GenericFlatMc::max_time

Definition at line 74 of file genericFlatMc.h.

Definition at line 81 of file genericFlatMc.h.

Definition at line 71 of file genericFlatMc.h.

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

Definition at line 45 of file genericFlatMc.h.

Referenced by setup().

ofstream GenericFlatMc::out_file [private]

Definition at line 52 of file genericFlatMc.h.

Referenced by ~GenericFlatMc().

string GenericFlatMc::out_filename [private]

Definition at line 51 of file genericFlatMc.h.

Definition at line 50 of file genericFlatMc.h.

Definition at line 82 of file genericFlatMc.h.

unsigned int GenericFlatMc::packets

Definition at line 68 of file genericFlatMc.h.

Definition at line 49 of file genericFlatMc.h.

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

Definition at line 69 of file genericFlatMc.h.

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

long int GenericFlatMc::packets_pending [private]

Definition at line 59 of file genericFlatMc.h.

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

Definition at line 61 of file genericFlatMc.h.

Referenced by handle_new_packet_event(), handle_out_pull_event(), and ~GenericFlatMc().

deque<unsigned long long int> GenericFlatMc::pending_packets_time [private]

Definition at line 60 of file genericFlatMc.h.

Referenced by handle_new_packet_event(), handle_out_pull_event(), and ~GenericFlatMc().

vector< bool > GenericFlatMc::ready [private]

Definition at line 53 of file genericFlatMc.h.

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

bool GenericFlatMc::sending [private]

Definition at line 44 of file genericFlatMc.h.

Referenced by handle_out_pull_event(), and setup().

unsigned long long int GenericFlatMc::waiting_at_injection

Definition at line 72 of file genericFlatMc.h.


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

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