Logo Search packages:      
Sourcecode: nam version File versions  Download package

Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions

Agent Class Reference

Inheritance diagram for Agent:
Inheritance graph
Collaboration diagram for Agent:
Collaboration graph

List of all members.

Public Member Functions

void add_feature (Feature *f)
void addTag (Animation *)
TrafficSourceaddTrafficSource (TrafficSource *ts)
void anchor (int v)
int anchor () const
double angle () const
void angle (double a)
const BBoxbbox ()
void change_color (char *color)
virtual int classid () const
void color (const char *name)
void delete_feature (Feature *f)
void deleteTag (Animation *)
void detach ()
virtual float distance (float x, float y) const
virtual void draw (View *, double now)=0
Edgeedge () const
Featurefind_feature (char *) const
virtual void findClosestCornertoPoint (double x, double y, double &corner_x, double &corner_y) const =0
void flowcolor (const char *color)
virtual const char * getedst () const
virtual const char * getesrc () const
virtual const char * getfid () const
AnimationgetLastTag ()
const char * getname () const
virtual const char * getProperties (const char *type)
AnimationgetTag (int i) const
virtual const char * gettype () const
double height ()
void hideLink ()
int id () const
const char * info () const
void insert (Animation **)
virtual int inside (float px, float py) const
virtual int inside (double now, float px, float py) const
void interval (float size)
int isTagged () const
void label (const char *name, int anchor)
void mark (int v)
int marked () const
void maxcwnd (int size)
void merge (BBox &b)
void monitor (Monitor *m, double now, char *result, int len)
virtual MonStatemonitor_state (void)
virtual void move (EditView *editview, float x_displacement, float y_displacement)
const char * name () const
Agentnext () const
void next (Agent *a)
int num () const
int number () const
int numTag () const
void packetSize (int size)
int paint () const
void paint (int id)
virtual void place (double x, double y)
Animation ** prev () const
int produce ()
void produce (int number)
const char * property ()
void remove_monitor ()
TrafficSourceremoveTrafficSource (TrafficSource *ts)
virtual void reset (double)
int saveAsEnam (FILE *file)
void setNumber (int number)
void showLink ()
double size () const
virtual void size (double s)
float startAt ()
void startAt (float time)
StateInfo stateInfo ()
void stopAt (float time)
float stopAt ()
void toggle_color ()
void tracevar (const char *var)
int type () const
virtual void update (double now)
virtual void update_bb ()
double width ()
void window (int size)
void windowInit (int size)
int writeNsConnectionScript (FILE *file)
int writeNsDefinitionScript (FILE *file)
virtual double x () const
virtual double y () const

Static Public Member Functions

static Animationfind (unsigned int id)

Public Attributes

int AgentRole_
bool draw_link_

Static Public Attributes

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

Protected Member Functions

 Agent (const char *type, int id, double _size)
 Agent (const char *name, double _size)
void drawlabel (View *) const

Protected Attributes

int anchor_
double angle_
int aType_
BBox bb_
char * color_
char * flowcolor_
double height_
unsigned int id_
float interval_
char * label_
int mark_
int maxcwnd_
int nTag_
int number_
int oldPaint_
int packetSize_
int paint_
Animation ** prev_
int produce_
StateInfo si_
double size_
float start_
float stop_
Animation ** tags_
char * tracevar_
double width_
int window_
int windowInit_
double x_
double y_

Private Member Functions

void setDefaults ()

Detailed Description

Definition at line 56 of file agent.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index