|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbcds.phison.io.GraphWriter<V,E>
bcds.phison.io.SgfGraphWriter<V,E>
bcds.phison.io.NetGraphWriter<V,E>
public class NetGraphWriter<V extends GraphIONode,E>
Writes a topology in .net format.
See NetGraphReader for more information on the .net file format.
Flating-point values are always written in "US" format (decimal point is the character '.').
| Constructor Summary | |
|---|---|
NetGraphWriter(SimGraph<V,E> g)
Creates a new instance that will write the topology g
to System.out. |
|
NetGraphWriter(java.lang.String fname,
SimGraph<V,E> g)
Creates a new instance that will write the topology g
to a file indicated by fname. |
|
NetGraphWriter(java.io.Writer out,
SimGraph<V,E> g)
Creates a new instance that will write the topology g
to out. |
|
| Method Summary | |
|---|---|
void |
writeAll()
Writes the topology to the selected destination. |
void |
writeCapacityMatrix(java.lang.String sect_name)
Writes the capacity matrix. |
| Methods inherited from class bcds.phison.io.GraphWriter |
|---|
printf, setCapacityMap, setCostMap, setHeadingComment, setNetName, setTrafficMatrix, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetGraphWriter(SimGraph<V,E> g)
g
to System.out.
public NetGraphWriter(java.lang.String fname,
SimGraph<V,E> g)
g
to a file indicated by fname.
public NetGraphWriter(java.io.Writer out,
SimGraph<V,E> g)
g
to out.
| Method Detail |
|---|
public void writeAll()
writeAll in class SgfGraphWriter<V extends GraphIONode,E>public void writeCapacityMatrix(java.lang.String sect_name)
This is public on purpose: It might be useful outside of NetGraphWriter.
sect_name - the section name (or any other "heading").
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||