class Edge : public Animation


Inheritance:


Public Fields

Edge* next_

Public Methods

void AddPacket(Packet *)
inline int anchor()
inline void anchor(int v)
inline double angle()
void arrive_packet(Packet *, double atime)
virtual int classid()
void dcolor(const char* name)
inline void dec_usage()
inline double delay()
void DeletePacket(Packet *)
void direction(const char* name)
virtual float distance(float x, float y)
void dlabel(const char* name)
virtual void draw(View*, double)
inline int dst()
Edge(Node* src, Node* dst, double ps, double bw, double delay, double length, double angle)
inline double GetDelay()
const char* getname()
inline void inc_usage()
const char* info()
void init_color(char *clr)
virtual int inside(float, float)
virtual int inside(double, float, float)
inline int isdown()
inline double length()
inline void mark()
inline int marked()
inline int match(int s, int d)
void monitor(Monitor *m, double now, char *result, int len)
inline Node* neighbor()
inline int no_of_packets()
XXX for debugging only
inline double PacketHeight()
inline Packet* packets()
void place(double, double, double, double)
const char* property()
inline double realangle()
inline double reallength()
virtual void reset(double)
virtual void draw(PSView*, double) const;
int save(FILE *file)
int saveAsEnam(FILE *file)
int saveAsNs(FILE *file)
void set_down(char *clr)
void set_up()
inline void setAngle(double angle)
inline void setBW(double bw)
inline void setDelay(double dlay)
inline double size()
inline void size(double s)
inline int src()
inline Node* start()
inline const Transform& transform()
inline double txtime(int n)
inline void unmark()
virtual void update_bb()
Do nothing
inline int used()
inline void visible(int v)
inline int visible()
inline double x0()
inline double y0()
~Edge()

Private Fields

int anchor_
double angle_
double bandwidth_
link bandwidth (bits/sec)
char* dcolor_
label color
double delay_
link delay
int direction_
char* dlabel_
Label to be drawn beneath the link
BBox eb_
own bounding box in its own coordinate
Packet* last_packet_
oldest packet - normally first to arrive
double length_
link length if not related to delay
int marked_
Transform matrix_
rotation matrix for packets
Node* neighbor_
int no_of_packets_
Packet* packets_
newest packet to be added
double psize_
packet size XXX
const int src_
Node* start_
int state_
int used_
is the edge currently being used
int visible_
double x0_
double x1_

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)
virtual const char* getedst()
virtual const char* getesrc()
virtual const char* getfid()
Animation* getLastTag()
inline Animation* getTag(int i)
virtual const char* gettype()
int id()
void insert(Animation **)
inline int isTagged()
inline void merge(BBox& b)
virtual MonState* monitor_state(void)
virtual void move(EditView*, float, float )
inline Animation* next()
inline int numTag()
void paint(int id)
inline int paint()
inline Animation** prev()
void remove_monitor()
inline StateInfo stateInfo()
void toggle_color()
inline int type()
virtual void update(double now)

Protected Fields

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

Documentation

Edge(Node* src, Node* dst, double ps, double bw, double delay, double length, double angle)

~Edge()

virtual void draw(View*, double)

virtual void reset(double)
virtual void draw(PSView*, double) const;

virtual int classid()

virtual float distance(float x, float y)

inline double GetDelay()

inline double PacketHeight()

inline double size()

inline void size(double s)

inline int src()

inline int dst()

inline int match(int s, int d)

inline const Transform& transform()

inline double txtime(int n)

inline double angle()

inline double realangle()

inline void setAngle(double angle)

inline double delay()

inline double length()

inline double x0()

inline double y0()

inline int anchor()

inline void anchor(int v)

inline int visible()

inline void visible(int v)

inline Node* neighbor()

inline Node* start()

inline Packet* packets()

inline double reallength()

inline void setBW(double bw)

inline void setDelay(double dlay)

inline void inc_usage()

inline void dec_usage()

inline int used()

inline int no_of_packets()
XXX for debugging only

void init_color(char *clr)

void set_down(char *clr)

void set_up()

inline int isdown()

void place(double, double, double, double)

virtual void update_bb()
Do nothing

void AddPacket(Packet *)

void DeletePacket(Packet *)

void arrive_packet(Packet *, double atime)

void dlabel(const char* name)

void direction(const char* name)

void dcolor(const char* name)

virtual int inside(double, float, float)

virtual int inside(float, float)

const char* info()

const char* property()

const char* getname()

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

inline int marked()

inline void mark()

inline void unmark()

int save(FILE *file)

int saveAsEnam(FILE *file)

int saveAsNs(FILE *file)

Edge* next_

const int src_

Node* neighbor_

Node* start_

double x0_

double x1_

double psize_
packet size XXX

double angle_

double bandwidth_
link bandwidth (bits/sec)

double delay_
link delay

double length_
link length if not related to delay

Transform matrix_
rotation matrix for packets

int state_

BBox eb_
own bounding box in its own coordinate

Packet* packets_
newest packet to be added

int no_of_packets_

Packet* last_packet_
oldest packet - normally first to arrive

int marked_

int visible_

char* dlabel_
Label to be drawn beneath the link

char* dcolor_
label color

int direction_

int anchor_

int used_
is the edge currently being used


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