|
|||||||||
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.CSDFLanguageAnalysis
public class CSDFLanguageAnalysis
This analysis extends LanguageAnalysis
to read
CSDF graphs.
The graph type keyword used in the dif file should be "csdf" and runtime type of the returned graph will an CSDFGraph.
For CSDF graphs, the production and consumption rates are stored as int[] and the delay is stored as Integer.
LanguageAnalysis
,
CSDFGraph
,
CSDFEdgeWeight
Field Summary |
---|
Fields inherited from class mapss.dif.language.LanguageAnalysis |
---|
_graph, _hierarchies, _hierarchy, _subHierarchy |
Constructor Summary | |
---|---|
CSDFLanguageAnalysis()
|
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 CSDFLanguageAnalysis()
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 graph of hierarchy or a Port of hierarchy.
For CSDF graphs, the production and consumption rates are stored in int[] and the delay is stored as Integer. The port attributes Production and consumption are 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 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 CSDFGraph
object.
DIFLanguageException
CSDFEdgeWeight
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |