|
|||||||||
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.psdf.PSDFGraph
public class PSDFGraph
Information associated with a PSDF graph. This class caches frequently-used data associated with PSDF graphs. It is also useful for intermediate PSDF graph representations (between the application model and implementation), and performing graph transformations (e.g. quasi-static scheduling). It is intended for use with analysis/synthesis algorithms that operate on generic graph representations of PSDF models.
PSDFGraph nodes and edges have weights of type PSDFNodeWeight
and
PSDFEdgeWeight
, respectively.
PSDFEdgeWeight
,
PSDFNodeWeight
,
PSDFGraphReader
Constructor Summary | |
---|---|
PSDFGraph()
Construct an empty PSDF graph. |
|
PSDFGraph(int nodeCount)
Construct an empty PSDF graph with enough storage allocated for the specified number of nodes. |
|
PSDFGraph(int nodeCount,
int edgeCount)
Construct an empty PSDF graph with enough storage allocated for the specified number of edges, and number of nodes. |
Method Summary | |
---|---|
PSDFAttributeType |
getGraphType()
Get the type of this graph. |
void |
printEdgeRateExpressions()
Print the expressions associated with the data rates on each edge. |
void |
setGraphType(PSDFAttributeType type)
set type to either PSDFAttributeType.InitGraph, PSDFAttributeType.SubinitGraph, PSDFAttributeType.BodyGraph, or PSDFAttributeType.PSDFSpecification. |
boolean |
validEdgeWeight(java.lang.Object weight)
Verify edge weight for PSDF graph. |
boolean |
validNodeWeight(java.lang.Object weight)
Verify node weight for PSDF graph. |
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 PSDFGraph()
public PSDFGraph(int nodeCount)
nodeCount
- The number of nodes.public PSDFGraph(int nodeCount, int edgeCount)
nodeCount
- The integer specifying the number of nodesedgeCount
- The integer specifying the number of edgesMethod Detail |
---|
public PSDFAttributeType getGraphType()
public void printEdgeRateExpressions()
public void setGraphType(PSDFAttributeType type)
type
- PSDFAttributeTypepublic boolean validEdgeWeight(java.lang.Object weight)
validEdgeWeight
in class DIFGraph
weight
- The edge weight to verify.
public boolean validNodeWeight(java.lang.Object weight)
validNodeWeight
in class DIFGraph
weight
- The node weight to verify.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |