|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Model.Model
All Topology generation in BRITE is governed by a Model Class. A
Model is a member variable of every topology and knows how to
generate a representative graph.
Class Model is the base
abstract class from which all models in BRITE must be derived.
For Router level models, consult the class RouterModel
and for models at the AS level, see the ASModel
class
Field Summary | |
protected int |
connLocality
Modeling Connection Locality. |
protected int |
growthType
The growth method used when building the graph. |
protected int |
HS
HS is the length of the plane (or number of unit size squares) |
protected int |
LS
LS is the length of the inner squares in each HS square. |
protected int |
m
m is the number of nodes each new node connects to |
protected int |
N
N is the number of nodes in the topology generated by this model |
protected int |
nodePlacement
The NodePlacement method used when placing nodes on the plane. |
protected static java.util.HashSet |
nodePositions
This is a static Hashset that tracks node collisions when placing nodes in the plane. |
protected int |
prefConn
A notion of preferential connectivity. |
protected RandomGenManager |
rm
Each model has one random number generator manager. |
Constructor Summary | |
Model()
|
Method Summary | |
abstract Graph |
Generate()
All Models that are derived from this base Model class, must override the Generate() method. |
int |
getConnLocal()
|
int |
getGrowthType()
Get method used by a Model instance. |
int |
getM()
Get the m parameter used by a Model instance. |
int |
getN()
Get the number of nodes in a topology to be generated by a Model instance. |
int |
getNodePlacement()
Get method used by a Model instance. |
int |
getPrefModel()
|
void |
setRandomGenManager(RandomGenManager rm)
Set the RandomGenManager for this Model. |
abstract java.lang.String |
toString()
All models have a string description which is returned by their toString() method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int nodePlacement
protected int growthType
protected int prefConn
protected int connLocality
protected int HS
protected int LS
protected int m
protected int N
protected RandomGenManager rm
protected static java.util.HashSet nodePositions
Constructor Detail |
public Model()
Method Detail |
public void setRandomGenManager(RandomGenManager rm)
rm
- The one RandomGenManager which manages the seeds
and random number generators for this model.RandomGenManager
public int getNodePlacement()
public int getGrowthType()
public int getPrefModel()
public int getConnLocal()
public int getN()
public int getM()
public abstract Graph Generate()
public abstract java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |