|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapss.dif.ptolemy.GraphReader
mapss.dif.ptolemy.DIFGraphReader
mapss.dif.csdf.sdf.SDFGraphReader
public class SDFGraphReader
This class provides methods for converting Ptolemy II SDF models
into weighted graph representations.
Node and edge weights in the converted graphs are, respectively,
SDFNodeWeight
and SDFEdgeWeight
objects that are filled
in with the appropriate SDF/topological attributes.
SDFGraph
Constructor Summary | |
---|---|
SDFGraphReader()
Create a new SDF graph reader. |
Method Summary | |
---|---|
protected java.lang.Object |
_computeEdgeWeight(ptolemy.actor.IOPort sourcePort,
ptolemy.actor.IOPort sinkPort)
Construct an SDFEdgeWeight object that represents the given
SDF connection from a Ptolemy II model. |
protected java.lang.Object |
_computeNodeWeight(ptolemy.actor.Actor actor)
Construct an SDFNodeWeight object that represents the given
atomic actor from a Ptolemy II model. |
protected mocgraph.Graph |
_initializeGraph(ptolemy.actor.CompositeActor compositeActor)
Return a newly-instantiated, empty SDFGraph as initialization of the process of converting a Ptolemy II SDF model to an SDFGraph. |
protected void |
_transformTopology(mocgraph.Graph graph)
Convert instances of the SampleDelay actor in an SDF graph into edge delays. |
void |
setDelayTransformation()
Configure the reader so that Ptolemy II delay actors (SampleDelay actors) will be converted (in subsequent reader invocations) to edge delays as a post-processing step of graph conversion. |
Methods inherited from class mapss.dif.ptolemy.DIFGraphReader |
---|
_processNewEdge, _processNewNode |
Methods inherited from class mapss.dif.ptolemy.GraphReader |
---|
convert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDFGraphReader()
Method Detail |
---|
public void setDelayTransformation()
protected java.lang.Object _computeEdgeWeight(ptolemy.actor.IOPort sourcePort, ptolemy.actor.IOPort sinkPort)
SDFEdgeWeight
object that represents the given
SDF connection from a Ptolemy II model.
_computeEdgeWeight
in class DIFGraphReader
sourcePort
- the output port of the SDF connection.sinkPort
- the input port of the SDF connection.
SDFEdgeWeight
.
java.lang.RuntimeException
- if there is an error retrieving
the SDF attributes of the Ptolemy model's connection.protected java.lang.Object _computeNodeWeight(ptolemy.actor.Actor actor)
SDFNodeWeight
object that represents the given
atomic actor from a Ptolemy II model.
_computeNodeWeight
in class DIFGraphReader
actor
- the atomic actor
SDFNodeWeight
.protected mocgraph.Graph _initializeGraph(ptolemy.actor.CompositeActor compositeActor)
_initializeGraph
in class DIFGraphReader
compositeActor
- the Ptolemy II model that will be converted.
protected void _transformTopology(mocgraph.Graph graph)
_transformTopology
in class mapss.dif.ptolemy.GraphReader
graph
- the SDF graph.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |