|
|||||||||
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.mdsdf.MDSDFLanguageAnalysis
public class MDSDFLanguageAnalysis
This analysis extends LanguageAnalysis
to read
DIF specification of MDSDF graphs.
The graph type keyword used in the dif file should be "mdsdf" and runtime type of the returned graph will a MDSDFGraph.
For MDSDF graphs, the production and consumption rates are stored in
int[]
and the delay is stored in int[]
.
LanguageAnalysis
,
MDSDFGraph
,
MDSDFEdgeWeight
Field Summary |
---|
Fields inherited from class mapss.dif.language.LanguageAnalysis |
---|
_graph, _hierarchies, _hierarchy, _subHierarchy |
Constructor Summary | |
---|---|
MDSDFLanguageAnalysis()
|
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 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 MDSDFLanguageAnalysis()
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 mdsdfd graph of hierarchy or a Port in the hierarchy.
For MDSDF graphs, production and consumption rates are stored in
int[]
and delays are also stored in int[]
.
Attributes value Production and consumption of port is
also stored in int[]
.
This method checks value and id and throw
DIFLanguageException
when they are invalid.
_processBuiltinAttribute
in class LanguageAnalysis
object
- An Edge in the mdsdf graph of hierarchy or
a Port in the hierarchy.id
- Name of the attribute being processed.value
- The Token value of this built-in attribute or the
DIFParameter refer to the actual value object.hierarchy
- The DIFHierarchy object containing the MDSDFGraph
object.
DIFLanguageException
MDSDFEdgeWeight
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |