Model
Class ASModel
java.lang.Object
|
+--Model.Model
|
+--Model.ASModel
- Direct Known Subclasses:
- ASBarabasiAlbert, ASWaxman
- public abstract class ASModel
- extends Model
Derived from class Model, this abstract class serves as a parent
class for models that will ultimately generate representative Autonomous System (AS) level
topologies. In this distribution of BRITE, two subclasses,
ASWaxman and ASBarabasiAlbert use the functionality provided
in this class. ASModel (this class) implements the PlaceNodes()
and AssignBW() functions for all AS level models for which it is a parent of. If you are creating
your own AS level model, you may use use/extend the functionality provided in
this class, but you are free to derive your class directly from Model.
RouterModel is an analogous class for router level topologies.
Method Summary |
void |
AssignBW(Edge[] e)
Assign bandwidth to a graph generated by a router model according to the bwDist parameter passed into RouterModel's subclass. |
void |
PlaceNodes(Graph g,
int nodeType)
Places nodes of nodeType (nodes that represent individual ASs in this case) onto the
plane according to the NodePlacement type and add them to our graph g. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASModel
public ASModel()
PlaceNodes
public void PlaceNodes(Graph g,
int nodeType)
- Places nodes of nodeType (nodes that represent individual ASs in this case) onto the
plane according to the NodePlacement type and add them to our graph g.
Does collision checking and so ensures that two nodes can never have the same (x,y) coords.
AssignBW
public void AssignBW(Edge[] e)
- Assign bandwidth to a graph generated by a router model according to the bwDist parameter passed into RouterModel's subclass.