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 Attributes

BoxAgent Class Reference

Inheritance diagram for BoxAgent:
Inheritance graph
[legend]
Collaboration diagram for BoxAgent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void add_feature (Feature *f)
void addTag (Animation *)
TrafficSourceaddTrafficSource (TrafficSource *ts)
int anchor () const
void anchor (int v)
double angle () const
void angle (double a)
const BBoxbbox ()
 BoxAgent (const char *name, double size)
 BoxAgent (const char *type, int id, double size)
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 *nv, double time)
Edgeedge () const
Featurefind_feature (char *) const
virtual void findClosestCornertoPoint (double x, double y, double &corner_x, double &corner_y) const
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 **)
int inside (double, float, float) const
virtual int inside (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 setHeight (double h)
void setNumber (int number)
void setWidth (double w)
void showLink ()
virtual void size (double s)
double size () const
void startAt (float time)
float startAt ()
StateInfo stateInfo ()
float stopAt ()
void stopAt (float time)
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

AgentAgentPartner_
int AgentRole_
bool draw_link_
Agentnext_
Nodenode_
TrafficSourcetraffic_sources_

Static Public Attributes

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

Protected Member Functions

void drawlabel (View *) const

Protected Attributes

int anchor_
double angle_
int aType_
BBox bb_
char * color_
Edgeedge_
Featurefeatures_
char * flowcolor_
double height_
unsigned int id_
float interval_
char * label_
int mark_
int maxcwnd_
Monitormonitor_
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 Attributes

double x0_
double y0_

Detailed Description

Definition at line 166 of file agent.h.


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

Generated by  Doxygen 1.6.0   Back to index