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

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

AutoNetModel Class Reference

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

List of all members.

Public Member Functions

void add_drop (const TraceEvent &, double now, int direction)
int add_monitor (Animation *a)
int add_tag (Tag *tag)
EdgeaddEdge (int argc, const char *const *argv)
EdgeaddEdge (int src_id, int dst_id, const TraceEvent &e)
NodeaddNode (const TraceEvent &e)
void addView (NetView *)
 AutoNetModel (const char *animator)
virtual void BoundingBox (BBox &)
void check_monitors (Animation *a)
void color_subtrees ()
void delete_monitor (Monitor *m)
void delete_monitor (int monnum)
void delete_monitor (Animation *a)
void delete_tag (const char *tn)
int deleteTagCmd (char *tagName, char *tagDel)
AnimationfindClosest (float dx, float dy, double halo)
void handle (const TraceEvent &e, double now, int direction)
void hideAgentLinks ()
Animationinside (float px, float py) const
EdgelookupEdge (int source, int destination) const
NodelookupNode (int nn) const
TaglookupTag (const char *tn)
int monitor (double now, int monitor, char *result, int len)
virtual void moveNode (Node *n)
NetworkAnimatornam ()
PacketnewPacket (PacketAttr &pkt, Edge *e, double time)
double now ()
virtual void placeAgent (Agent *a, Node *src) const
virtual void recalc ()
void relayoutNode (Node *v)
void remove_view (View *v)
void render (TestView *)
virtual void render (EditView *, BBox &bb)
void render (View *)
void render (PSView *)
void reset (double)
int save_layout (const char *filename)
void selectPkt (int, int, int)
void set_wireless ()
int tagArea (BBox &bb, Tag *tag, int bEnclosed)
int tagCmd (View *v, int argc, char **argv, char *newTag, char *cmdName)
void tagObject (Tag *tag, Animation *)
virtual void update (double)
void update (double, Animation *)

Static Public Member Functions

static double max (double a, double b)
static double min (double a, double b)

Static Public Attributes

static int AUTO_ITERATIONS_ = 1
static int INCR_ITERATIONS_ = 200
static double INIT_TEMP_ = 0.30
static double MAXX_ = 1.0
static double MAXY_ = 1.0
static double MINX_ = 0.0
static double MINY_ = 0.0
static int RANDOM_SEED_ = 1
static int recalc_ = 1

Protected Member Functions

int add_group (Group *grp)
int addAddress (int id, int addr) const
int addr2id (int addr) const
double ATT (double d, double k)
double ATT2 (double d, double k)
void bifucate_graph ()
int command (int argc, const char *const *argv)
void cool ()
int ehash (int src, int dst) const
virtual void embed_phase1 (Node *v)
virtual void embed_phase1 ()
virtual void embed_phase2 ()
virtual void embed_phase2 (Node *v)
void enterEdge (Edge *e)
void initEmbedding ()
void layout ()
AgentlookupAgent (int id) const
EdgeHashNodelookupEdgeHashNode (int source, int destination) const
GrouplookupGroup (unsigned int addr)
LanlookupLan (int nn) const
int lookupObjname (const char *)
PacketlookupPacket (int src, int dst, int id) const
AnimationlookupTagOrID (const char *)
int mark_to_depth (Node *n, int depth)
void move (double &x, double &y, double angle, double d) const
void place_subtrees ()
void placeAllAgents (Node *src) const
virtual void placeEdge (Edge *e, Node *src) const
void placeEdgeByAngle (Edge *e, Node *src) const
virtual void placeEverything ()
int registerObjName (const char *, int)
void relayout ()
void removeEdge (Edge *e)
void removeNode (Node *n)
double REP (double d, double k)
void reset_layout ()
void saveState (double)
virtual void scale_estimate ()
int traverseNodeConnections (Node *n)
void weigh_subtrees ()

Protected Attributes

Tcl_HashTable * addrHash_
Animationanimations_
int colorDst_
int colorFid_
int colorSrc_
char colorTraffic_ [PTYPELEN]
Animationdrawables_
Tcl_HashTable * grpHash_
EdgeHashNodehashtab_ [EDGE_HASH_SIZE]
int hideDst_
int hideFid_
int hideSrc_
char hideTraffic_ [PTYPELEN]
Lanlans_
int mon_count_
Monitormonitors_
NetworkAnimatornam_
int nclass_
int nGroup_
double node_size_
double node_sizefac_
Nodenodes_
double now_
int nTag_
double nymax_
double nymin_
Tcl_HashTable * objnameHash_
int * oldpaint_
double packet_size_
int * paint_
int paintMask_
Queuequeues_
int resetf_
int selectedColor_
int selectedDst_
int selectedFid_
int selectedSrc_
char selectedTraffic_ [PTYPELEN]
int showData_
int showMac_
int showRouting_
Tcl_HashTable * tagHash_
Viewviews_
int wireless_
double wirelessNodeSize_

Private Attributes

int iterations_
double kc_
double kca_
double kcr_
int nNodes_
double optk_
double optka_
double optkr_
double temp_

Detailed Description

Definition at line 12 of file anetmodel.h.


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

Generated by  Doxygen 1.6.0   Back to index