|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmocgraph.analysis.strategy.CachedStrategy
mapss.dif.csdf.CSDFToSingleRateTransformerStrategy
public class CSDFToSingleRateTransformerStrategy
A transformation to generate an SingleRateGraph from a CSDFGraph. The computeRepetitions in CSDFGraph does not * period. In Cyclo-Static Dataflow paper, Eq1, repetition vector is different than CSDF repetition vector in DIF. So according to CSDF paper, we multiply period of each node to each repetition.
For more information on the algorithm See: Page403, Figure 9, Greet Bilsen, Marc Engels, Rudy Lauwereins, and Jean Peperstraete. Cyclo-Static Dataflow, IEEE Transaction On Signal Processing, Feb 1996.
Field Summary | |
---|---|
protected mocgraph.Graph |
_resultGraph
|
Constructor Summary | |
---|---|
CSDFToSingleRateTransformerStrategy(mocgraph.Graph graph)
Construct a transformation for a given graph. |
Method Summary | |
---|---|
protected mocgraph.Edge |
_addDataflowEdge(mocgraph.Node hSource,
mocgraph.Node hSink,
int rate,
int newDelay)
This method should be overridden in derived classes to change the way that edges are added to the graph constructed from a CSDF graph. |
protected java.lang.Object |
_compute()
Computes the transformation of a CSDFGraph to a SingleRateGraph. |
protected void |
_resetResultGraph()
This method should be overridden in derived classes to change the type of graph the resulting graph is reset to. |
boolean |
hasBackwardMapping()
Specify if this transformation has a mapping from the transformed version to the original version or not. |
boolean |
hasForwardMapping()
Specify if this transformation has a mapping from the original version to the transformed version or not. |
java.lang.Object |
originalVersionOf(java.lang.Object transformedObject)
Return the original version of given object in the transformed graph. |
java.lang.Object |
result()
Return the resulting graph after the transformation. |
java.lang.String |
toString()
Return a description of the analysis. |
java.lang.Object |
transformedVersionOf(java.lang.Object originalObject)
Return the transformed version of a given object in the original graph. |
boolean |
valid()
Check compatibility for between the analysis and the given graph. |
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 |
Field Detail |
---|
protected mocgraph.Graph _resultGraph
Constructor Detail |
---|
public CSDFToSingleRateTransformerStrategy(mocgraph.Graph graph)
graph
- The given graph.Method Detail |
---|
public boolean hasBackwardMapping()
hasBackwardMapping
in interface mocgraph.analysis.analyzer.Transformer
public boolean hasForwardMapping()
hasForwardMapping
in interface mocgraph.analysis.analyzer.Transformer
public java.lang.Object originalVersionOf(java.lang.Object transformedObject)
originalVersionOf
in interface mocgraph.analysis.analyzer.Transformer
transformedObject
- The given object in the transformed graph.
public java.lang.Object result()
public java.lang.String toString()
toString
in interface mocgraph.analysis.analyzer.Analyzer
toString
in class mocgraph.analysis.strategy.CachedStrategy
public java.lang.Object transformedVersionOf(java.lang.Object originalObject)
transformedVersionOf
in interface mocgraph.analysis.analyzer.Transformer
originalObject
- The given object in the original graph.
public boolean valid()
valid
in interface mocgraph.analysis.analyzer.Analyzer
CSDFGraph
.protected mocgraph.Edge _addDataflowEdge(mocgraph.Node hSource, mocgraph.Node hSink, int rate, int newDelay)
hSource
- The source nodehSink
- The sink nodenewDelay
- The delay on the edgeprotected java.lang.Object _compute()
Greet Bilsen, Marc Engels, Rudy Lauwereins, and Jean Peperstraete. Cyclo-Static Dataflow, IEEE Transaction On Signal Processing, Feb 1996.
_compute
in class mocgraph.analysis.strategy.CachedStrategy
protected void _resetResultGraph()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |