Model
Class RouterModel
java.lang.Object
|
+--Model.Model
|
+--Model.RouterModel
- Direct Known Subclasses:
- RouterBarabasiAlbert, RouterWaxman
- public abstract class RouterModel
- extends Model
Derived from class Model, this abstract class serves as a parent
class for models that will ultimately generate router level
topologies. In this distribution of BRITE, two subclasses,
RouterWaxman and RouterBarabasiAlbert use the functionality provided
in this class. RouterModel (this class) implements the PlaceNodes()
and AssignBW() functions for router level models. If you are creating
your own router model, you may use use the functionality provided in
this class, but you are free to derive your class directly from Model.
ASModel is an analogous class for Autonomous System (AS) 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)
Place nodes of nodeType (router nodes 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 |
RouterModel
public RouterModel()
PlaceNodes
public void PlaceNodes(Graph g,
int nodeType)
- Place nodes of nodeType (router nodes in this case) onto the
plane according to the NodePlacement type and add them to our
graph g. Does collision checking to ensure that two nodes in
the plane 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.