Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

fsm.cc File Reference

#include "fsm.h"
#include <assert.h>

Include dependency graph for fsm.cc:

Include dependency graph

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


Define Documentation

#define LARGER_NUMBER_OF_STATES   31
 

#define MAX a,
 )     (((a) > (b)) ? (a) : (b))
 

Definition at line 42 of file fsm.cc.

Referenced by FSMState::print_all_stats().

#define MIN a,
 )     (((a) < (b)) ? (a) : (b))
 

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().


Function Documentation

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
[static]
 

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 }


Variable Documentation

RenoAckFSMClass class_renoackfsm [static]
 

RenoDelAckFSMClass class_renodelackfsm [static]
 

TahoeAckFSMClass class_tahoeackfsm [static]
 

TahoeDelAckFSMClass class_tahoedelackfsm [static]
 


Generated on Tue Apr 20 12:20:22 2004 for NS2.26SourcesOriginal by doxygen 1.3.3