ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


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

ErrorModel Class Reference

#include <errmodel.h>

Inheritance diagram for ErrorModel:

Connector NsObject TclObject Handler ListErrorModel LMSErrorModel MultiStateErrorModel PeriodicErrorModel SelectErrorModel TraceErrorModel TwoStateErrorModel SRMErrorModel MrouteErrorModel List of all members.

Public Member Functions

 ErrorModel ()
virtual void recv (Packet *, Handler *)
virtual void reset ()
virtual int corrupt (Packet *)
double rate ()
ErrorUnit unit ()

Protected Member Functions

virtual int command (int argc, const char *const *argv)
int CorruptPkt (Packet *)
int CorruptTime (Packet *)
int CorruptByte (Packet *)
int CorruptBit (Packet *)
double PktLength (Packet *)
doubleComputeBitErrProb (int)

Protected Attributes

int enable_
int markecn_
int delay_pkt_
int firstTime_
ErrorUnit unit_
double rate_
double delay_
double bandwidth_
RandomVariableranvar_
int FECstrength_
int datapktsize_
int cntrlpktsize_
doublecntrlprb_
doubledataprb_
Event intr_

Constructor & Destructor Documentation

ErrorModel::ErrorModel  
 


Member Function Documentation

int ErrorModel::command int    argc,
const char *const *    argv
[protected, virtual]
 

Reimplemented from Connector.

Reimplemented in SRMErrorModel, TwoStateErrorModel, MultiStateErrorModel, ListErrorModel, SelectErrorModel, MrouteErrorModel, and LMSErrorModel.

double * ErrorModel::ComputeBitErrProb int    [protected]
 

int ErrorModel::corrupt Packet   [virtual]
 

Reimplemented in SRMErrorModel, TwoStateErrorModel, MultiStateErrorModel, TraceErrorModel, PeriodicErrorModel, ListErrorModel, SelectErrorModel, and LMSErrorModel.

int ErrorModel::CorruptBit Packet   [protected]
 

int ErrorModel::CorruptByte Packet   [protected]
 

int ErrorModel::CorruptPkt Packet   [protected]
 

int ErrorModel::CorruptTime Packet   [protected]
 

double ErrorModel::PktLength Packet   [protected]
 

double ErrorModel::rate   [inline]
 

void ErrorModel::recv Packet  ,
Handler  
[virtual]
 

Reimplemented from Connector.

void ErrorModel::reset   [virtual]
 

Reimplemented from NsObject.

ErrorUnit ErrorModel::unit   [inline]
 


Member Data Documentation

double ErrorModel::bandwidth_ [protected]
 

int ErrorModel::cntrlpktsize_ [protected]
 

double* ErrorModel::cntrlprb_ [protected]
 

int ErrorModel::datapktsize_ [protected]
 

double* ErrorModel::dataprb_ [protected]
 

double ErrorModel::delay_ [protected]
 

int ErrorModel::delay_pkt_ [protected]
 

int ErrorModel::enable_ [protected]
 

int ErrorModel::FECstrength_ [protected]
 

int ErrorModel::firstTime_ [protected]
 

Event ErrorModel::intr_ [protected]
 

int ErrorModel::markecn_ [protected]
 

RandomVariable* ErrorModel::ranvar_ [protected]
 

Reimplemented in TwoStateErrorModel.

double ErrorModel::rate_ [protected]
 

ErrorUnit ErrorModel::unit_ [protected]
 


The documentation for this class was generated from the following files:
This document is generated by doxygen.