public class TestGraphReader extends java.lang.Object
Usage: java ptolemy.actor.test xmlFileName
,
where xmlFileName
is the name of a MoML file that
contains a Ptolemy II specification. This application converts the
specification into a weighted graph representation, and prints out information
about this weighted graph.
Modifier | Constructor and Description |
---|---|
protected |
TestGraphReader() |
Modifier and Type | Method and Description |
---|---|
protected void |
_printGraph(DirectedGraph graph)
Print information about a graph to standard output.
|
protected CompositeActor |
_readGraph(java.lang.String[] args)
Convert a MoML file that contains a Ptolemy II specification into a
composite actor representation.
|
static void |
main(java.lang.String[] args)
Convert a MoML file that contains a Ptolemy II specification into a
weighted graph representation, and display information about
the weighted graph.
|
protected TestGraphReader()
public static void main(java.lang.String[] args)
args
- The name of the MoML file.protected void _printGraph(DirectedGraph graph)
main(String[])
to display information about the
model that is read. It should be overridden to change the way this
information is displayed.graph
- The graph for which information is to be printed.protected CompositeActor _readGraph(java.lang.String[] args)
args
- The name of the MoML file.