class <ErrorModel/Trace> TraceErrorModel : public ErrorModel

error model that reads a loss trace (instead of a math/computed model)

Inheritance:


Public Fields

ErrorModel/Trace instvar file_
ErrorModel/Trace instvar good_
ErrorModel/Trace instvar loss_

Public Methods

virtual int corrupt(Packet* p)
ErrorModel/Trace instproc init {{filename ""}}
virtual int match(Packet* p)
ErrorModel/Trace instproc open {filename}
ErrorModel/Trace instproc read {}
TraceErrorModel()

Protected Fields

double good_
double loss_

Inherited from ErrorModel:

Public Methods

inline double rate()
virtual void recv(Packet*, Handler*)
virtual void reset()
inline ErrorUnit unit()

Protected Fields

double bandwidth_
int enable_
int firstTime_
Event intr_
int markecn_
RandomVariable* ranvar_
double rate_
ErrorUnit unit_

Protected Methods

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

Inherited from Connector:

Public Methods

virtual void drop(Packet* p)
inline NsObject* target()

Protected Fields

NsObject* drop_
NsObject* target_

Protected Methods

virtual void drop(Packet* p, const char *s)
inline void send(Packet* p, Handler* h)

Inherited from NsObject:

Public Methods

virtual void debug(const char *fmt, ...)
virtual int delay_bind_dispatch(const char *varName, const char *localName, TclObject *tracer)
virtual void delay_bind_init_all()
int isdebug()

Protected Fields

int debug_
int off_cmn_
int off_flags_

Protected Methods

void handle(Event*)

Inherited from Handler:


Documentation

error model that reads a loss trace (instead of a math/computed model)
TraceErrorModel()

virtual int match(Packet* p)

virtual int corrupt(Packet* p)

double loss_

double good_

ErrorModel/Trace instproc init {{filename ""}}

ErrorModel/Trace instvar file_

ErrorModel/Trace instproc open {filename}

ErrorModel/Trace instproc read {}

ErrorModel/Trace instvar good_

ErrorModel/Trace instvar loss_


Direct child classes:
MrouteErrorModel

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de