class VirtualNode : public Node


Public Methods

virtual void arrive_packet(Packet *p, Edge *e, double atime)
virtual void delete_packet(Packet *p)
virtual void draw(View*, double now)
virtual void place(double x, double y)
virtual void size(double s)
char* style()
VirtualNode(const char* name, Lan *lan)
virtual double x(Edge *e)
virtual double y(Edge *e)

Private Fields

Lan* lan_

Inherited from Node:

Public Fields

Node* next_
Queue* queue_

Public Methods

void add_agent(Agent*)
void add_link(Edge*)
int add_mark(char *name, char *color, char *shape)
void add_route(Route*)
void add_sess_queue(unsigned int grp, Queue *q)
inline int addr()
inline Agent* agents()
inline int anchor()
inline void anchor(int v)
inline double angle(Node &n)
virtual int classid()
void clear_routes()
void dcolor(const char* name)
void delete_agent(Agent*)
void delete_link(Edge*)
void delete_mark(char *name)
void delete_route(Route*)
void direction(const char* name)
void displace(double dx, double dy)
inline double distance(Node &n)
virtual float distance(float x, float y)
void dlabel(const char* name)
inline double dx()
inline double dy()
Agent* find_agent(char *name)
Edge* find_edge(int dst)
NodeMark* find_mark(char *name)
Route* find_route(Edge *e, int group, int pktsrc, int oif)
const char* getname()
const char* info()
void init_color(char *clr)
virtual int inside(double t, float px, float py)
inline int isdown()
void label(const char* name, int anchor)
void lcolor(const char* name)
inline Edge* links()
inline void mark(int v)
inline int marked()
inline void mass(int m)
inline int mass()
void monitor(Monitor *m, double now, char *result, int len)
virtual void move(EditView *v, float dwx, float dwy)
inline const char* name()
inline char* ncolor()
void ncolor(const char* name)
int no_of_routes(Edge *e)
inline float nsize()
inline int num()
void place_all_routes()
void place_route(Route*)
void placeorig(double x, double y)
const char* property()
Queue* queue()
virtual void reset(double)
int save(FILE *file)
int saveAsEnam(FILE *file)
int saveAsNs(FILE *file)
void set_down(char *color)
void set_up()
void setaddr(int addr)
void setend(double t)
void setstart(double t)
void setvelocity(double x, double y)
virtual void update(double now)

Protected Fields

int addr_
Agent* agents_
int anchor_
char* dcolor_
int direction_
char* dlabel_
double dx_
char* label_
char* lcolor_
Edge* links_
int mark_
int mass_
char* ncolor_
NodeMark* nm_
int nMark_
int nn_
float nsize_
Route* routes_
double size_
double starttime_
int state_
double x_
double x_vel_
double xorig_

Protected Methods

void draw_mark(View *)
void drawlabel(View*)
void update_bb()

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)
inline Animation* next()
inline int numTag()
inline int paint()
void paint(int id)
inline Animation** prev()
void remove_monitor()
inline StateInfo stateInfo()
void toggle_color()
inline int type()

Protected Fields

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


VirtualNode(const char* name, Lan *lan)

virtual void size(double s)

virtual void draw(View*, double now)

virtual void place(double x, double y)

virtual void arrive_packet(Packet *p, Edge *e, double atime)

virtual void delete_packet(Packet *p)

virtual double x(Edge *e)

virtual double y(Edge *e)

char* style()

Lan* lan_

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