|
|||||||||
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.psdf.PSDFLanguageAnalysis
public class PSDFLanguageAnalysis
This analysis extends LanguageAnalysis
to read
PSDF graphs.
The graph type keyword used in the dif file should be "psdf" and runtime type of the returned graph will an PSDFGraph.
LanguageAnalysis
,
PSDFGraph
,
PSDFSpecification
Field Summary |
---|
Fields inherited from class mapss.dif.language.LanguageAnalysis |
---|
_graph, _hierarchies, _hierarchy, _subHierarchy |
Constructor Summary | |
---|---|
PSDFLanguageAnalysis()
|
Method Summary | |
---|---|
protected boolean |
_acceptableSubHierarchy(DIFHierarchy hierarchy)
Returns true if a hierarchy can be a sub-hierarchy of the current one. |
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 PSDFLanguageAnalysis()
Method Detail |
---|
public static boolean isKeyWord(java.lang.String word)
protected boolean _acceptableSubHierarchy(DIFHierarchy hierarchy)
PSDFSpecificationGraph
.
_acceptableSubHierarchy
in class LanguageAnalysis
hierarchy
- Sub hierarchy to add.
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.The value can be Integer or DIFParameter and will be converted to ptolemy.data.expr.Variable in order to set PSDFEdgeWeight. The object is an Edge in the psdf graph of hierarchy or a Port in the same level.
The value type of Production and consumption port attributes is equal to the type in edge weights.
_processBuiltinAttribute
in class LanguageAnalysis
object
- An Edge in the psdf 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.hierarchy
- The DIFHierarchy contains the PSDFGraph.
DIFLanguageException
PSDFEdgeWeight
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |