|
||||||||||
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>
public class SgfGraphWriter<V extends GraphIONode,E>
Writes a topology in .sgf format.
See SgfGraphReader
for more information on the .sgf file format.
Constructor Summary | |
---|---|
SgfGraphWriter(SimGraph<V,E> g)
Creates a new instance that will write the topology g
to System.out . |
|
SgfGraphWriter(java.lang.String fname,
SimGraph<V,E> g)
Creates a new instance that will write the topology g
to a file indicated by fname . |
|
SgfGraphWriter(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. |
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 SgfGraphWriter(SimGraph<V,E> g)
g
to System.out
.
public SgfGraphWriter(java.lang.String fname, SimGraph<V,E> g)
g
to a file indicated by fname
.
public SgfGraphWriter(java.io.Writer out, SimGraph<V,E> g)
g
to out
.
Method Detail |
---|
public void writeAll()
AnyException
- with "cause" IOException if
flusing the output stream fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |