|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmocgraph.Graph
mocgraph.DirectedGraph
mapss.dif.DIFGraph
mapss.dif.csdf.CSDFGraph
mapss.dif.csdf.sdf.SDFGraph
public class SDFGraph
Information associated with an SDF graph. This class caches frequently-used data associated with SDF graphs. It is also useful for intermediate SDF graph representations (between the application model and implementation), and performing graph transformations (e.g. convertion to and manipulation of single-rate graphs). It is intended for use with analysis/synthesis algorithms that operate on generic graph representations of SDF models.
SDFGraph nodes and edges have weights of type SDFNodeWeight
and
SDFEdgeWeight
, respectively.
SDFEdgeWeight
,
SDFNodeWeight
Constructor Summary | |
---|---|
SDFGraph()
Construct an empty SDF graph. |
|
SDFGraph(int nodeCount)
Construct an empty SDF graph with enough storage allocated for the specified number of nodes. |
|
SDFGraph(int nodeCount,
int edgeCount)
Construct an empty SDF graph with enough storage allocated for the specified number of edges, and number of nodes. |
Method Summary | |
---|---|
int |
ABMLB()
Absolute Buffer Memory Lower Bound of the graph. |
int |
ABMLB(mocgraph.Edge edge)
Absolute Buffer Memory Lower Bound of a given edge. |
int |
BMLB()
Buffer Memory Lower Bound of the graph. |
int |
BMLB(mocgraph.Edge edge)
Buffer Memory Lower Bound of a given edge. |
int |
BMUB()
Buffer Memory Upper Bound of the graph. |
int |
BMUB(mocgraph.Edge edge)
Buffer Memory Upper Bound of a given edge. |
int |
clusterRepetitions(java.util.Collection nodeCollection)
Compute repetitions for a cluster of nodes. |
int |
maxRate()
The maximal sample exchanging rate in the graph. |
double |
rateOneRatio()
Returns the ratio of sample exchanging rate of 1 of this graph. |
int |
TNSE(mocgraph.Edge edge)
"Total Number of Samples Exchanged" of a given edge. |
boolean |
validEdgeWeight(java.lang.Object weight)
Verify edge weight for SDF graph. |
boolean |
validNodeWeight(java.lang.Object weight)
Verify node weight for SDF graph. |
Methods inherited from class mapss.dif.csdf.CSDFGraph |
---|
_checkPeriods, _getPeriod, _getRepetitionsMap, checkRepetitions, computeRepetitions, getRepetitions, removeNode, setRepetitions |
Methods inherited from class mocgraph.DirectedGraph |
---|
_connect, _connectedSubGraph, _disconnect, _initializeAnalyses, backwardReachableNodes, backwardReachableNodes, backwardReachableNodes, backwardReachableNodes, cycleNodeCollection, cycleNodes, edgeExists, edgeExists, inputEdgeCount, inputEdges, isAcyclic, outputEdgeCount, outputEdges, predecessorEdges, predecessors, reachableNodes, reachableNodes, reachableNodes, reachableNodes, sccDecomposition, selfLoopEdgeCount, sinkNodeCount, sinkNodes, sourceNodeCount, sourceNodes, subgraphs, successorEdges, successors, toDirectedAcyclicGraph, topologicalSort, topologicalSort, transitiveClosure |
Methods inherited from class mocgraph.Graph |
---|
_addEdge, _connectEdge, _disconnectEdge, _emptyGraph, _registerChange, addAnalysis, addEdge, addEdge, addEdge, addEdges, addGraph, addNode, addNode, addNodes, addNodeWeight, addNodeWeights, changeCount, clone, cloneAs, connectedComponents, containsEdge, containsEdgeWeight, containsNode, containsNodeWeight, edge, edge, edgeCount, edgeLabel, edgeLabel, edges, edges, edges, edgeWeight, hidden, hiddenEdgeCount, hiddenEdges, incidentEdgeCount, incidentEdges, neighborEdges, neighbors, node, node, nodeCount, nodeLabel, nodeLabel, nodes, nodes, nodes, nodeWeight, selfLoopEdgeCount, selfLoopEdges, selfLoopEdges, toString, validateWeight, validateWeight, validateWeight, validateWeight, weightArray |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SDFGraph()
public SDFGraph(int nodeCount)
nodeCount
- The number of nodes.public SDFGraph(int nodeCount, int edgeCount)
nodeCount
- The integer specifying the number of nodesedgeCount
- The integer specifying the number of edgesMethod Detail |
---|
public int ABMLB()
ABMLB(Edge)
.
public int ABMLB(mocgraph.Edge edge)
edge
- The given edge.
public int BMLB()
BMLB(Edge)
. The bound is for
single appearance schedules only.
public int BMLB(mocgraph.Edge edge)
edge
- The given edge.
public int BMUB()
BMUB(Edge)
. The bound is for
single appearance schedules only.
public int BMUB(mocgraph.Edge edge)
edge
- The given edge.
public int clusterRepetitions(java.util.Collection nodeCollection)
nodeCollection
- The node cluster in Collection
.
public int maxRate()
public double rateOneRatio()
public int TNSE(mocgraph.Edge edge)
edge
- The given edge.
public boolean validEdgeWeight(java.lang.Object weight)
validEdgeWeight
in class CSDFGraph
weight
- The edge weight to verify.
public boolean validNodeWeight(java.lang.Object weight)
validNodeWeight
in class CSDFGraph
weight
- The node weight to verify.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |