|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapss.dif.language.sablecc.analysis.AnalysisAdapter
mapss.dif.language.sablecc.analysis.DepthFirstAdapter
mapss.dif.language.LanguageAnalysis
mapss.dif.csdf.sdf.SDFLanguageAnalysis
public class SDFLanguageAnalysis
This analysis extends LanguageAnalysis
to read
SDF graphs.
The graph type keyword used in the dif file should be "sdf" and runtime type of the returned graph will an SDFGraph.
LanguageAnalysis
,
SDFGraph
,
SDFEdgeWeight
Field Summary |
---|
Fields inherited from class mapss.dif.language.LanguageAnalysis |
---|
_graph, _hierarchies, _hierarchy, _subHierarchy |
Constructor Summary | |
---|---|
SDFLanguageAnalysis()
|
Method Summary | |
---|---|
protected mocgraph.Edge |
_getEmptyEdge(mocgraph.Node source,
mocgraph.Node sink)
Should return an empty edge that can be used in the graph that is constructed. |
protected DIFGraph |
_getEmptyGraph()
Should return an empty graph of the type that is going to be constructed with this analysis. |
protected mocgraph.Node |
_getEmptyNode()
Should return an empty node that can be used in the graph that is constructed. |
protected java.lang.String |
_getKeyword()
Should return the DIF keyword associated with this analysis type. |
protected void |
_processBuiltinAttribute(java.lang.String id,
java.lang.Object object,
java.lang.Object value,
DIFHierarchy hierarchy)
Override the LanguageAnalysis._processBuiltinAttribute(java.lang.String, java.lang.Object, java.lang.Object, mapss.dif.DIFHierarchy)
to process built-in attributes: production,
consumption, delay, and computation. |
static boolean |
isKeyWord(java.lang.String word)
|
Methods inherited from class mapss.dif.language.sablecc.analysis.AnalysisAdapter |
---|
caseEOF, caseTActor, caseTAttribute, caseTBasedon, caseTBlank, caseTColon, caseTComma, caseTComment, caseTDot, caseTDouble, caseTEdges, caseTEqual, caseTFalse, caseTGraph, caseTIdentifier, caseTInputs, caseTInteger, caseTInterface, caseTLBkt, caseTLPar, caseTLSqr, caseTNodes, caseTOutputs, caseTParameter, caseTPlus, caseTRBkt, caseTRefinement, caseTRPar, caseTRSqr, caseTSemicolon, caseTSQte, caseTString, caseTStringIdentifier, caseTStringTail, caseTTopology, caseTTrue, defaultCase, getIn, getOut, setIn, setOut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDFLanguageAnalysis()
Method Detail |
---|
public static boolean isKeyWord(java.lang.String word)
protected mocgraph.Edge _getEmptyEdge(mocgraph.Node source, mocgraph.Node sink)
LanguageAnalysis
_getEmptyEdge
in class LanguageAnalysis
source
- Source node for the edge.sink
- Sink node for the edge.
protected DIFGraph _getEmptyGraph()
LanguageAnalysis
_getEmptyGraph
in class LanguageAnalysis
protected mocgraph.Node _getEmptyNode()
LanguageAnalysis
_getEmptyNode
in class LanguageAnalysis
protected java.lang.String _getKeyword()
LanguageAnalysis
_getKeyword
in class LanguageAnalysis
protected void _processBuiltinAttribute(java.lang.String id, java.lang.Object object, java.lang.Object value, DIFHierarchy hierarchy) throws DIFLanguageException
LanguageAnalysis._processBuiltinAttribute(java.lang.String, java.lang.Object, java.lang.Object, mapss.dif.DIFHierarchy)
to process built-in attributes: production,
consumption, delay, and computation.If value is a DIFParameter, this method will find the actual value object. The object is an Edge in the sdf graph of hierarchy or a Port in the hierarchy.
For SDF graphs, the production and consumption rates and delays are integer. The value type of port attributes Production and consumption is equal to the type in edge weights.
This method checks value and id and throw
DIFLanguageException
when they are invalid.
_processBuiltinAttribute
in class LanguageAnalysis
object
- An Edge in the sdf graph of hierarchy or
a Port in the hierarchy.id
- Name of the attribute being processed.value
- The value of this built-in attribute or the
DIFParameter refer to the actual value object.hierarchy
- The DIFHierarchy object containing the SDFGraph
object.
DIFLanguageException
SDFEdgeWeight
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |