|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmocgraph.Graph
mapss.dif.csdf.sdf.mem.PartitionBase
mapss.dif.csdf.sdf.mem.PartitionedGraph
mapss.dif.csdf.sdf.mem.ConflictGraph
public class ConflictGraph
The conflict graph for data partitioning.
| Constructor Summary | |
|---|---|
ConflictGraph()
A constructor. |
|
ConflictGraph(mocgraph.Graph graph)
Constructor for a given graph. |
|
| Method Summary | |
|---|---|
java.util.Collection |
getPartitioningConflicts()
Get all the edges of partitioning conflicts. |
java.util.Collection |
getPartitioningNeighbors(mocgraph.Node node)
Get neighbors with partitioning conflicts for the given node. |
mocgraph.Node |
getSDFBufferOf(mocgraph.Edge sdfEdge)
Get the SDF buffer by a given SDF edge. |
java.util.Collection |
getSDFBuffers()
Get all the nodes representing SDF buffers. |
mocgraph.Edge |
getSDFEdgeOf(mocgraph.Node buffer)
Get the SDF edge corresponding to the given SDF buffer (represented as conflict graph node). |
java.util.Collection |
getSDFEdgesOf(GraphPartition partition)
Get all the corresponding SDF edges for the given partition. |
SDFGraph |
getSDFGraph()
Get the SDF graph associated with the conflict graph. |
java.util.Collection |
getSharingConflicts()
Get all the edges of sharing conflicts. |
java.util.Collection |
getSharingNeighbors(mocgraph.Node node)
Get neighbors with sharing conflicts for the given node. |
boolean |
isParallelismMaximized()
Check whether all partitioning conflicts are in the edge cut. |
boolean |
isSDFBuffer(mocgraph.Node node)
Check whether the given node is an SDF buffer. |
boolean |
isSharingConflict(mocgraph.Edge edge)
Check whether the edge is a sharing conflict. |
java.lang.String |
partitionString()
Display partitions in a text string. |
void |
removeSharingConflicts()
Remove all the sharing conflict edges. |
void |
setPartitioningConflict(mocgraph.Edge edge)
Set the edge as partitioning conflict. |
void |
setSDFBufferMapping(mocgraph.Node buffer,
mocgraph.Edge sdfEdge)
Set buffer mapping for a node. |
void |
setSDFGraph(SDFGraph sdfGraph)
Set the associated SDF graph. |
void |
setSharingConflict(mocgraph.Edge edge)
Set the edge as sharing conflict. |
double |
stateVariableCost(GraphPartition partition)
Total state variable cost of the given partition. |
void |
updateSDFBufferCost(mocgraph.sched.Schedule schedule)
Update SDF buffer sizes from a schedule. |
void |
updateSDFBufferCost(mocgraph.mapping.ToIntMapMapping sizes)
Update SDF buffer sizes for nodes representing SDF buffers. |
| Methods inherited from class mapss.dif.csdf.sdf.mem.PartitionedGraph |
|---|
addPartition, addPartitions, ascendentPartitions, descendentPartitions, dualOf, edgeCut, edgeCutOf, edgeCutOf, edgeCutString, edgeCutValueOf, edgeNonCutValueOf, getPartitions, partitionIndexOf, partitionIndexOf, partitionOf, partitionOf, partitionsOf, resetPartitions |
| Methods inherited from class mapss.dif.csdf.sdf.mem.PartitionBase |
|---|
_checkGraphElement, ascendentListOf, descendentListOf, getIndex, removeEdge, removeNode, setElementValue, setElementValues, setIndex, valueOf |
| Methods inherited from class mocgraph.Graph |
|---|
_addEdge, _connect, _connectEdge, _disconnect, _disconnectEdge, _emptyGraph, _initializeAnalyses, _registerChange, _registerEdge, _registerNode, addAnalysis, addEdge, addEdge, 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, equals, hashCode, hidden, hiddenEdgeCount, hiddenEdges, hideEdge, incidentEdgeCount, incidentEdges, neighborEdges, neighbors, node, node, nodeCount, nodeLabel, nodeLabel, nodes, nodes, nodes, nodeWeight, restoreEdge, selfLoopEdgeCount, selfLoopEdgeCount, selfLoopEdges, selfLoopEdges, subgraph, subgraph, toString, validateWeight, validateWeight, validateWeight, validateWeight, validEdgeWeight, validNodeWeight, weightArray |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConflictGraph()
public ConflictGraph(mocgraph.Graph graph)
graph - The graph to construct from.| Method Detail |
|---|
public java.util.Collection getPartitioningConflicts()
Collection.public java.util.Collection getPartitioningNeighbors(mocgraph.Node node)
node - The given node to get neighbors.
Collection.public java.util.Collection getSharingConflicts()
Collection.public java.util.Collection getSharingNeighbors(mocgraph.Node node)
node - The given node to get neighbors.
Collection.public mocgraph.Node getSDFBufferOf(mocgraph.Edge sdfEdge)
sdfEdge - The given SDF edge.
public java.util.Collection getSDFBuffers()
public mocgraph.Edge getSDFEdgeOf(mocgraph.Node buffer)
buffer - The given node representing an SDF buffer.
public java.util.Collection getSDFEdgesOf(GraphPartition partition)
partition - The given partition.
public SDFGraph getSDFGraph()
public boolean isParallelismMaximized()
public boolean isSDFBuffer(mocgraph.Node node)
node - The node to check.
public boolean isSharingConflict(mocgraph.Edge edge)
edge - The edge to check.
public java.lang.String partitionString()
partitionString in class PartitionedGraphpublic void removeSharingConflicts()
public void setSDFBufferMapping(mocgraph.Node buffer,
mocgraph.Edge sdfEdge)
buffer - The node representing SDF buffers.sdfEdge - The SDF edge the buffer corresponds to.public void setPartitioningConflict(mocgraph.Edge edge)
.
- Parameters:
edge - The partitioning conflict.
public void setSDFGraph(SDFGraph sdfGraph)
sdfGraph - The associated SDF graph.public void setSharingConflict(mocgraph.Edge edge)
edge - The partitioning conflict.public double stateVariableCost(GraphPartition partition)
partition - The partition.
public void updateSDFBufferCost(mocgraph.mapping.ToIntMapMapping sizes)
sizes - The buffer costs.public void updateSDFBufferCost(mocgraph.sched.Schedule schedule)
schedule - The schedule to derive the cost.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||