|
|||||||||
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.psdf.PSDFGraphReader
public class PSDFGraphReader
This class provides methods for converting Ptolemy II PSDF models
into weighted graph representations.
Node and edge weights in the converted graphs are, respectively,
PSDFNodeWeight
and PSDFEdgeWeight
objects that are filled
in with the appropriate PSDF/topological attributes.
PSDFGraph
Constructor Summary | |
---|---|
PSDFGraphReader()
Create a new PSDF graph reader. |
Method Summary | |
---|---|
protected java.lang.Object |
_computeEdgeWeight(ptolemy.actor.IOPort sourcePort,
ptolemy.actor.IOPort sinkPort)
Construct a PSDFEdgeWeight object that represents the given
PSDF connection from a Ptolemy II model. |
protected java.lang.Object |
_computeNodeWeight(ptolemy.actor.Actor actor)
Construct an PSDFNodeWeight 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 PSDFGraph as initialization of the process of converting a Ptolemy II PSDF model to a PSDFGraph. |
Methods inherited from class mapss.dif.ptolemy.DIFGraphReader |
---|
_processNewEdge, _processNewNode |
Methods inherited from class mapss.dif.ptolemy.GraphReader |
---|
_transformTopology, convert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PSDFGraphReader()
Method Detail |
---|
protected java.lang.Object _computeEdgeWeight(ptolemy.actor.IOPort sourcePort, ptolemy.actor.IOPort sinkPort)
PSDFEdgeWeight
object that represents the given
PSDF connection from a Ptolemy II model.
_computeEdgeWeight
in class DIFGraphReader
sourcePort
- the output port of the PSDF connection.sinkPort
- the input port of the PSDF connection.
PSDFEdgeWeight
.
java.lang.RuntimeException
- if there is an error retrieving
the PSDF attributes of the Ptolemy model's connection.protected java.lang.Object _computeNodeWeight(ptolemy.actor.Actor actor)
PSDFNodeWeight
object that represents the given
atomic actor from a Ptolemy II model.
_computeNodeWeight
in class DIFGraphReader
actor
- the atomic actor
PSDFNodeWeight
.protected mocgraph.Graph _initializeGraph(ptolemy.actor.CompositeActor compositeActor)
_initializeGraph
in class DIFGraphReader
compositeActor
- the Ptolemy II model that will be converted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |