class Packet : public Animation


Inheritance:


Public Methods

inline const int attr()
void CheckPolygon(View *, int, float x[5], float y[5])
virtual int classid()
int ComputePolygon(double now, float ax[5], float ay[5])
inline const char* convid()
static int count()
virtual float distance(float, float)
virtual void draw(View*, double now)
inline double finish()
virtual const char* getedst()
virtual const char* getesrc()
virtual const char* getfid()
virtual const char* getname()
virtual const char* gettype()
inline int id()
virtual const char* info()
virtual int inside(double now, float px, float py)
void monitor(Monitor *m, double now, char *result, int len)
MonState* monitor_state()
inline void next(Packet *p)
inline Packet* next()
Packet(Edge*, const PacketAttr&, double, double, long )
void position(float&, float&, double)
inline Packet* prev()
inline void prev(Packet *p)
void RearrangePoints(View *v, int npts, float x[5], float y[5])
inline int size()
inline double start()
inline const char* type()
virtual void update(double now)
virtual void draw(PSView*, double now) const;
virtual void update_bb()
~Packet()

Protected Fields

int arriving_
has the packet started to arrive yet?
static int count_
double curTime_
Edge* edge_
Packet* next_
packets on a particular edge
PacketAttr pkt_
Packet* prev_
maintain a doubly linked list of
double ta_
time of arrival of leading edge
double ts_
time of start of transmission
double tx_
tranmission time of packet on cur link
int type_

Protected Methods

virtual int EndPoints(double, double&, double&)

Inherited from Animation:

Public Fields

static Tcl_HashTable* AniHash_
static unsigned int LASTID_
static unsigned int nAniHash_

Public Methods

void addTag(Animation *)
const BBox& bbox()
void change_color(char *color)
void color(char *color)
void deleteTag(Animation *)
void detach()
static Animation* find(unsigned int id)
Animation* getLastTag()
inline Animation* getTag(int i)
void insert(Animation **)
inline int isTagged()
inline void merge(BBox& b)
virtual void move(EditView*, float, float )
inline int numTag()
void paint(int id)
inline int paint()
virtual const char* property()
void remove_monitor()
virtual void reset(double now)
inline StateInfo stateInfo()
void toggle_color()

Protected Fields

int aType_
BBox bb_
unsigned int id_
Monitor* monitor_
int nTag_
int oldPaint_
int paint_
StateInfo si_
Animation** tags_

Documentation

Packet(Edge*, const PacketAttr&, double, double, long )

~Packet()

virtual float distance(float, float)

void position(float&, float&, double)

virtual void draw(View*, double now)

virtual void update(double now)
virtual void draw(PSView*, double now) const;

int ComputePolygon(double now, float ax[5], float ay[5])

virtual int inside(double now, float px, float py)

virtual const char* info()

virtual const char* getname()

virtual const char* getfid()

virtual const char* getesrc()

virtual const char* getedst()

virtual const char* gettype()

void monitor(Monitor *m, double now, char *result, int len)

MonState* monitor_state()

inline int id()

inline int size()

inline Packet* next()

inline void next(Packet *p)

inline Packet* prev()

inline void prev(Packet *p)

inline double start()

inline double finish()

inline const int attr()

inline const char* type()

inline const char* convid()

virtual int classid()

virtual void update_bb()

void CheckPolygon(View *, int, float x[5], float y[5])

void RearrangePoints(View *v, int npts, float x[5], float y[5])

static int count()

virtual int EndPoints(double, double&, double&)

Edge* edge_

Packet* prev_
maintain a doubly linked list of

Packet* next_
packets on a particular edge

PacketAttr pkt_

double ts_
time of start of transmission

double ta_
time of arrival of leading edge

int arriving_
has the packet started to arrive yet?

double tx_
tranmission time of packet on cur link

double curTime_

static int count_

int type_


This class has no child classes.

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