00001 /****************************************************************************/ 00002 /* Copyright 2001, Trustees of Boston University. */ 00003 /* All Rights Reserved. */ 00004 /* */ 00005 /* Permission to use, copy, or modify this software and its documentation */ 00006 /* for educational and research purposes only and without fee is hereby */ 00007 /* granted, provided that this copyright notice appear on all copies and */ 00008 /* supporting documentation. For any other uses of this software, in */ 00009 /* original or modified form, including but not limited to distribution in */ 00010 /* whole or in part, specific prior permission must be obtained from Boston */ 00011 /* University. These programs shall not be used, rewritten, or adapted as */ 00012 /* the basis of a commercial software or hardware product without first */ 00013 /* obtaining appropriate licenses from Boston University. Boston University*/ 00014 /* and the author(s) make no representations about the suitability of this */ 00015 /* software for any purpose. It is provided "as is" without express or */ 00016 /* implied warranty. */ 00017 /* */ 00018 /****************************************************************************/ 00019 /* */ 00020 /* Author: Alberto Medina */ 00021 /* Anukool Lakhina */ 00022 /* Title: BRITE: Boston university Representative Topology gEnerator */ 00023 /* Revision: 2.0 4/02/2001 */ 00024 /****************************************************************************/ 00025 #ifndef AS_MODEL_H 00026 #define AS_MODEL_H 00027 //#pragma interface 00028 00029 #include "Model.h" 00030 00032 // 00033 // class ASModel 00034 // Base class for models that generate 00035 // AS-level topologies 00036 // 00038 00039 00040 class ASModel : public Model { 00041 00042 public: 00043 00044 ~ASModel() {} 00045 virtual Graph* Generate() { return (Graph*)NULL;} 00046 void PlaceNodes(Graph* g); 00047 void AssignBW(Graph* g); 00048 00049 BWDistType GetBWDist() { return BWdist; } 00050 void SetBWDist(BWDistType t) { BWdist = t; } 00051 void SetBWMin(double bw) { BWmin = bw; } 00052 void SetBWMax(double bw) { BWmax = bw; } 00053 double GetBWMin() { return BWmin; } 00054 double GetBWMax() { return BWmax; } 00055 00056 private: 00057 00058 BWDistType BWdist; 00059 double BWmin; 00060 double BWmax; 00061 00062 }; 00063 00064 00065 #endif /* AS_MODEL_H */ 00066 00067
1.3.9.1