#include "fsm.h"#include <assert.h>Include dependency graph for fsm.cc:

Go to the source code of this file.
Compounds | |
| class | RenoAckFSMClass |
| class | RenoDelAckFSMClass |
| class | TahoeAckFSMClass |
| class | TahoeDelAckFSMClass |
Defines | |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | LARGER_NUMBER_OF_STATES 31 |
Functions | |
| void | report_stat_terminus (int desired_pkts, int pkts, int rtts, int timeouts, int ps, int qs, int num_states, int num_state_names, FSMState **states, char *state_names) |
Variables | |
| TahoeAckFSMClass | class_tahoeackfsm |
| RenoAckFSMClass | class_renoackfsm |
| TahoeDelAckFSMClass | class_tahoedelackfsm |
| RenoDelAckFSMClass | class_renodelackfsm |
|
|
|
|
|
Definition at line 42 of file fsm.cc. Referenced by FSMState::print_all_stats(). |
|
|
Definition at line 45 of file fsm.cc. Referenced by FSMState::print_all_stats(), VegasTcpAgent::recv(), PcapNetwork::recv(), RBPRenoTcpAgent::send_much(), RBPVegasTcpAgent::send_much(), and QSNewRenoTcpAgent::send_much(). |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 108 of file fsm.cc. References states. Referenced by FSMState::print_all_stats().
00118 {
00119 // print states and probability
00120 printf("%s: p^%d*q^%d, %d rtt, %d timeouts, %d states:",
00121 (pkts > desired_pkts ? "exceeded-pkts" :
00122 (pkts == desired_pkts ? "desired_pkts" : "unimplemented-qs")),
00123 ps, qs,
00124 rtts, timeouts,
00125 num_states);
00126 char ch = ' ';
00127 int i;
00128 for (i = 0; i < num_states; i++) {
00129 printf ("%c#%d", ch, states[i]->print_i_);
00130 ch = ',';
00131 };
00132 printf(" [%.*s]\n", num_state_names, state_names);
00133 }
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.3