Model
Class FileModel
java.lang.Object
|
+--Model.Model
|
+--Model.FileModel
- public final class FileModel
- extends Model
Constructor Summary |
FileModel(int fileFormat,
java.lang.String filename,
int type,
int HS,
int LS,
int BWDist,
float BWMin,
float BWMax)
|
Method Summary |
Graph |
Generate()
All Models that are derived from this base Model class, must
override the Generate() method. |
void |
PlaceNode(Node n)
place this node in the plane, i.e. |
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 |
FileModel
public FileModel(int fileFormat,
java.lang.String filename,
int type,
int HS,
int LS,
int BWDist,
float BWMin,
float BWMax)
PlaceNode
public void PlaceNode(Node n)
- place this node in the plane, i.e. get an x,y,z coord for this node
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
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