fsm.cc File Reference

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

Include dependency graph for fsm.cc:

Go to the source code of this file.

Data Structures

class  RenoAckFSMClass
class  RenoDelAckFSMClass
class  TahoeAckFSMClass
class  TahoeDelAckFSMClass

Defines

#define LARGER_NUMBER_OF_STATES   31
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))

Functions

static 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

RenoAckFSMClass class_renoackfsm
RenoDelAckFSMClass class_renodelackfsm
TahoeAckFSMClass class_tahoeackfsm
TahoeDelAckFSMClass class_tahoedelackfsm


Define Documentation

#define LARGER_NUMBER_OF_STATES   31
 

Referenced by FSMState::print_all_stats().

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

Definition at line 71 of file fsm.cc.

Referenced by SctpAgent::CwndDegradeTimerExpiration(), SctpAgent::FastRtx(), NewRenoSctpAgent::FastRtx(), GridKeeper::get_neighbors(), WirelessPhy::sendDown(), WirelessPhy::sendUp(), SctpAgent::Timeout(), MfrHbAfterRtoSctpAgent::Timeout(), and HbAfterRtoSctpAgent::Timeout().

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

Definition at line 74 of file fsm.cc.

Referenced by SctpAgent::AdjustCwnd(), God::floyd_warshall(), GridKeeper::get_neighbors(), GridKeeper::new_moves(), FSMState::print_all_stats(), PcapNetwork::recv(), MIPMHAgent::reg(), RBPRenoTcpAgent::send_much(), RBPVegasTcpAgent::send_much(), QSNewRenoTcpAgent::send_much(), WirelessPhy::sendDown(), and SctpAgent::sendmsg().


Function Documentation

static 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 137 of file fsm.cc.

Referenced by FSMState::print_all_stats().

00147 {
00148     // print states and probability
00149     printf("%s: p^%d*q^%d, %d rtt, %d timeouts, %d states:",
00150            (pkts > desired_pkts ? "exceeded-pkts" :
00151             (pkts == desired_pkts ? "desired_pkts" : "unimplemented-qs")),
00152            ps, qs,
00153            rtts, timeouts,
00154            num_states);
00155     char ch = ' ';
00156     int i;
00157     for (i = 0; i < num_states; i++) {
00158         printf ("%c#%d", ch, states[i]->print_i_);
00159         ch = ',';
00160     };
00161     printf(" [%.*s]\n", num_state_names, state_names);
00162 }


Variable Documentation

RenoAckFSMClass class_renoackfsm [static]
 

RenoDelAckFSMClass class_renodelackfsm [static]
 

TahoeAckFSMClass class_tahoeackfsm [static]
 

TahoeDelAckFSMClass class_tahoedelackfsm [static]
 


Generated on Tue Mar 6 16:52:52 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6