#include <genericPktGen.h>
Definition at line 54 of file genericPktGen.h.
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 | ( | ) |
void GenericPktGen::finish | ( | ) |
void GenericPktGen::handle_new_packet_event | ( | IrisEvent * | e | ) | [private] |
Definition at line 147 of file genericPktGen.cc.
References _DBG, IrisEvent::event_data, HighLevelPacket::hop_count, Processor::interface_connections, Processor::ni_recv, Simulator::Now(), out_file, out_filename, NetworkComponent::process_event(), READY_EVENT, Simulator::Schedule(), HighLevelPacket::sent_time, stat_hop_count, stat_last_packet_in_cycle, stat_min_pkt_latency, stat_packets_in, stat_total_lat, HighLevelPacket::toString(), IrisEvent::type, IrisEvent::vc, and HighLevelPacket::virtual_channel.
Referenced by process_event().
void GenericPktGen::handle_out_pull_event | ( | IrisEvent * | e | ) | [private] |
Definition at line 185 of file genericPktGen.cc.
References _DBG, HighLevelPacket::addr, arate_gen, HighLevelPacket::data_payload_length, dest_gen, HighLevelPacket::destination, do_request_reply_network, Processor::interface_connections, irt, last_vc, lastSentTime, mc_positions, mean_irt, HighLevelPacket::msg_class, NEW_PACKET_EVENT, no_mcs, no_nodes, NetworkComponent::node_ip, Simulator::Now(), out_file, OUT_PULL_EVENT, pkt_payload_length, NetworkComponent::process_event(), ready, Simulator::Schedule(), sending, HighLevelPacket::sent_time, HighLevelPacket::source, stat_last_packet_out_cycle, stat_packets_out, terminal_msg_class, HighLevelPacket::toString(), HighLevelPacket::transaction_id, IrisEvent::type, vcs, and HighLevelPacket::virtual_channel.
Referenced by process_event().
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().
string GenericPktGen::print_stats | ( | void | ) | const [virtual] |
Implements Processor.
Definition at line 340 of file genericPktGen.cc.
References NetworkComponent::node_ip, stat_hop_count, stat_last_packet_in_cycle, stat_last_packet_out_cycle, stat_min_pkt_latency, stat_packets_in, stat_packets_out, and stat_total_lat.
void GenericPktGen::process_event | ( | IrisEvent * | e | ) | [virtual] |
Implements Processor.
Definition at line 126 of file genericPktGen.cc.
References NetworkComponent::address, handle_new_packet_event(), handle_out_pull_event(), handle_ready_event(), NEW_PACKET_EVENT, OUT_PULL_EVENT, READY_EVENT, and IrisEvent::type.
void GenericPktGen::set_no_vcs | ( | uint | v | ) |
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 | ) |
Implements Processor.
Definition at line 58 of file genericPktGen.cc.
References NetworkComponent::address, arate_gen, dest_gen, irt, last_vc, lastSentTime, max_sim_time, Component::myId(), no_nodes, NetworkComponent::node_ip, Simulator::Now(), plen_gen, NetworkComponent::process_event(), ready, READY_EVENT, Simulator::Schedule(), stat_hop_count, stat_last_packet_in_cycle, stat_last_packet_out_cycle, stat_min_pkt_latency, stat_packets_in, stat_packets_out, stat_total_lat, T, and vcs.
string GenericPktGen::toString | ( | ) | const [virtual] |
Reimplemented from Processor.
Definition at line 328 of file genericPktGen.cc.
References NetworkComponent::address, NetworkComponent::node_ip, and ready.
gsl_rng* GenericPktGen::arate_gen |
Definition at line 102 of file genericPktGen.h.
Referenced by handle_out_pull_event(), setup(), and ~GenericPktGen().
gsl_rng* GenericPktGen::dest_gen |
Definition at line 103 of file genericPktGen.h.
Referenced by handle_out_pull_event(), setup(), and ~GenericPktGen().
uint GenericPktGen::irt [private] |
unsigned int GenericPktGen::last_vc [private] |
Definition at line 67 of file genericPktGen.h.
Referenced by GenericPktGen(), handle_out_pull_event(), and setup().
ullint GenericPktGen::max_sim_time [private] |
Definition at line 86 of file genericPktGen.h.
vector<uint> GenericPktGen::mc_node_ip |
Definition at line 95 of file genericPktGen.h.
uint GenericPktGen::no_nodes [private] |
uint GenericPktGen::no_outstanding [private] |
Definition at line 64 of file genericPktGen.h.
ofstream GenericPktGen::out_file [private] |
Definition at line 65 of file genericPktGen.h.
Referenced by finish(), handle_new_packet_event(), handle_out_pull_event(), set_output_path(), and ~GenericPktGen().
string GenericPktGen::out_filename [private] |
Definition at line 62 of file genericPktGen.h.
Referenced by GenericPktGen(), handle_new_packet_event(), and set_output_path().
gsl_rng* GenericPktGen::plen_gen |
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().
unsigned int GenericPktGen::stat_packets_in |
Definition at line 77 of file genericPktGen.h.
Referenced by handle_new_packet_event(), print_stats(), and setup().
unsigned int GenericPktGen::stat_packets_out |
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 |
ifstream* GenericPktGen::trace_filename [private] |
string GenericPktGen::trace_name [private] |
uint GenericPktGen::vcs [private] |
Definition at line 58 of file genericPktGen.h.
Referenced by handle_out_pull_event(), handle_ready_event(), set_no_vcs(), and setup().