Export
Class BriteExport

java.lang.Object
  |
  +--Export.BriteExport

public class BriteExport
extends java.lang.Object

Export.BriteExport provides functionality to export a topology into a BRITE format file. The BRITE format looks like:

Topology: ( [numNodes] Nodes, [numEdges] Edges )
Model ( [ModelNum] ):  [Model.toString()]

Nodes: ([numNodes]):
[NodeID]  [x-coord]  [y-coord]  [inDegree] [outDegree] [ASid]  [type]
[NodeID]  [x-coord]  [y-coord]  [inDegree] [outDegree] [ASid]  [type]
[NodeID]  [x-coord]  [y-coord]  [inDegree] [outDegree] [ASid]  [type]
...

Edges: ([numEdges]):
[EdgeID]  [fromNodeID]  [toNodeID]  [Length]  [Delay]  [Bandwidth]  [ASFromNodeID]  [ASToNodeID]  [EdgeType]
[EdgeID]  [fromNodeID]  [toNodeID]  [Length]  [Delay]  [Bandwidth]  [ASFromNodeID]  [ASToNodeID]  [EdgeType]
[EdgeID]  [fromNodeID]  [toNodeID]  [Length]  [Delay]  [Bandwidth]  [ASFromNodeID]  [ASToNodeID]  [EdgeType]
...

Please see the BRITE User Manual (at http://www.cs.bu.edu/brite/docs.htm) for more information.


Constructor Summary
BriteExport(Topology t, java.io.File outFile)
          Class Constructor: Returns a BriteExport object which your code my keep around.
 
Method Summary
 void export()
          Writes the contents of the topolgy in the BRITE format to the destination file specified in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BriteExport

public BriteExport(Topology t,
                   java.io.File outFile)
Class Constructor: Returns a BriteExport object which your code my keep around. Does not actually write the topology to the file. You must explicitly call the export() method of this object in order to write to the file.
Parameters:
t - the topology object to export
outFile - the destination file to write the topology to.
Method Detail

export

public void export()
Writes the contents of the topolgy in the BRITE format to the destination file specified in the constructor.