bcds.phison.cmd
Class IOFormatFromDot
java.lang.Object
bcds.phison.cmd.IOFormatFromDot
public class IOFormatFromDot
- extends java.lang.Object
IOFormatFromDot implements a very simple converter from a topology
in DOT format to one of PHISON's supported formats, such as SGF,
NET of GraphML.
Subgraphs are not supported, and all attributes are ignored.
The syntax checking is minimal. The restrictions are as follows:
- The curly brace { must be on the same line as graph or digraph.
- The closing curly brace must appear on a line by itself.
- Node ids as must be numeric. They are automatically resequenced
from zero.
- Node ids may be enclosed in quotes, as in "12".
- Node and link definitions must fit entirely in a single line
and only one definition per line is allowed.
Capacity and cost is automatically set to 1 for all links. The
traffic matrix section is left empty but present.
This program can successfully read a .dot file generated by PHISON's
own routines as well as by DRMSIM. It has not been tested with
other input files.
See the output of --help for a description of parameters and
operation.
- Author:
- Juan Segovia S.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOFormatFromDot
public IOFormatFromDot()
parseArgs
public void parseArgs(java.lang.String[] args)
writeGraph
public void writeGraph()
main
public static void main(java.lang.String[] args)