public class TestBase
extends java.lang.Object
Constructor and Description |
---|
TestBase() |
Modifier and Type | Method and Description |
---|---|
protected Graph |
constructGraph(int numA,
int numP,
java.lang.String[][] gs,
java.lang.String[][] md)
Construct an SPDF graph.
|
private void |
setPortRate(Graph g,
java.lang.String actorName,
java.lang.String portName,
java.lang.String rate) |
protected Graph constructGraph(int numA, int numP, java.lang.String[][] gs, java.lang.String[][] md)
numA
- - number of actors, will be named "a1", "a2",...numP
- - maximum number of input and output ports "in1", "in2",..., "out1", "out2",...gs
- - graph structure - array of edges { "actor1", "port1", "rate1", "actor2", "port2", "rate2" }md
- - array of modifiers { "actor", "parameter", "num/bool", "period" }private void setPortRate(Graph g, java.lang.String actorName, java.lang.String portName, java.lang.String rate)