mapss.dif.csdf.sdf
Class SDFToHSDFTransformerStrategy
java.lang.Object
mocgraph.analysis.strategy.CachedStrategy
mapss.dif.csdf.sdf.SDFToSingleRateTransformerStrategy
mapss.dif.csdf.sdf.SDFToHSDFTransformerStrategy
- All Implemented Interfaces:
- mocgraph.analysis.analyzer.Analyzer, mocgraph.analysis.analyzer.GraphAnalyzer, mocgraph.analysis.analyzer.Transformer
public class SDFToHSDFTransformerStrategy
- extends SDFToSingleRateTransformerStrategy
A transformation to generate an HSDFGraph from an SDFGraph.
- Version:
- $Id: SDFToHSDFTransformerStrategy.java 406 2007-05-10 14:27:07Z plishker $
- Author:
- Shahrooz Shahparnia
Method Summary |
protected mocgraph.Edge |
_addDataflowEdge(mocgraph.Node hSource,
mocgraph.Node hSink,
int newDelay)
This method should be overridden in derived classes to change
the way that edges are added to the graph constructed from an SDF graph. |
protected void |
_resetResultGraph()
This method should be overridden in derived classes to change
the type of graph the resulting graph is reset to. |
java.lang.String |
toString()
Return a description of the analysis. |
Methods inherited from class mocgraph.analysis.strategy.CachedStrategy |
_convertResult, _result, cachingStatus, disableCaching, enableCaching, getCachedResult, graph, obsolete, reset, setCachedResult |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mocgraph.analysis.analyzer.GraphAnalyzer |
graph |
SDFToHSDFTransformerStrategy
public SDFToHSDFTransformerStrategy(mocgraph.Graph graph)
- Construct a transformation for a given graph.
- Parameters:
graph
- The given graph.
toString
public java.lang.String toString()
- Return a description of the analysis. This method
simply returns a description of the associated graph.
It should be overridden in derived classes to
include details associated with the associated analyses.
- Specified by:
toString
in interface mocgraph.analysis.analyzer.Analyzer
- Overrides:
toString
in class SDFToSingleRateTransformerStrategy
- Returns:
- A description of the analysis.
_addDataflowEdge
protected mocgraph.Edge _addDataflowEdge(mocgraph.Node hSource,
mocgraph.Node hSink,
int newDelay)
- This method should be overridden in derived classes to change
the way that edges are added to the graph constructed from an SDF graph.
- Overrides:
_addDataflowEdge
in class SDFToSingleRateTransformerStrategy
- Parameters:
hSource
- The source nodehSink
- The sink nodenewDelay
- The delay on the edge
_resetResultGraph
protected void _resetResultGraph()
- This method should be overridden in derived classes to change
the type of graph the resulting graph is reset to.
If not overridden the default graph would be HSDFGraph.
- Overrides:
_resetResultGraph
in class SDFToSingleRateTransformerStrategy