Model
Class TopDownHierModel

java.lang.Object
  |
  +--Model.Model
        |
        +--Model.TopDownHierModel

public class TopDownHierModel
extends Model


Fields inherited from class Model.Model
connLocality, growthType, HS, LS, m, N, nodePlacement, nodePositions, prefConn, rm
 
Constructor Summary
TopDownHierModel(java.util.ArrayList Models, int edgeConnMethod, int k, int bwInter, float interMin, float interMax, int bwIntra, float intraMin, float intraMax)
           
 
Method Summary
 void ConnectNodes(Node s, Node d, Graph gFlat, int direction)
          Node s and Node d are nodes are AS neighbors.
 void ConnectTopologies(Graph g0, Graph gFlat)
           
 Graph FlattenGraph(Graph g0)
           
 Graph Generate()
          All Models that are derived from this base Model class, must override the Generate() method.
 java.lang.String toString()
          All models have a string description which is returned by their toString() method.
 
Methods inherited from class Model.Model
getConnLocal, getGrowthType, getM, getN, getNodePlacement, getPrefModel, setRandomGenManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopDownHierModel

public TopDownHierModel(java.util.ArrayList Models,
                        int edgeConnMethod,
                        int k,
                        int bwInter,
                        float interMin,
                        float interMax,
                        int bwIntra,
                        float intraMin,
                        float intraMax)
Method Detail

toString

public java.lang.String toString()
Description copied from class: Model
All models have a string description which is returned by their toString() method. Usually this is included when exporting the topology generated by that model to a file.
Overrides:
toString in class Model
Following copied from class: Model.Model
Returns:
String

ConnectNodes

public void ConnectNodes(Node s,
                         Node d,
                         Graph gFlat,
                         int direction)
Node s and Node d are nodes are AS neighbors. Here, we connect the corresponding router level graphs of s and d according to edgeConn and update our flattened topology, gFlat.

ConnectTopologies

public void ConnectTopologies(Graph g0,
                              Graph gFlat)

FlattenGraph

public Graph FlattenGraph(Graph g0)

Generate

public Graph Generate()
Description copied from class: Model
All Models that are derived from this base Model class, must override the Generate() method. The Generate() method handles all the model-specific intricacies of: 1) Placing the Nodes 2) Interconnecting the Nodes 3) Assigning Edge weights (bandwidth, delay etc) And other model-specific functionality.
Overrides:
Generate in class Model
Following copied from class: Model.Model
Returns:
Graph