|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.graph.analysis.strategy.Strategy
ptolemy.graph.analysis.strategy.CachedStrategy
ptolemy.graph.analysis.strategy.ClusterNodesTransformerStrategy
public class ClusterNodesTransformerStrategy
Strategy for cluster transformers for graphs. The nodes of a graph given in a collection are being removed (clustered) and all of them are replaced by a single node called super node.
ClusterNodesAnalysis
| Red (ssb) |
| Red (shahrooz) |
| Field Summary | |
|---|---|
private java.util.Collection |
_nodeCollection
|
private Node |
_superNode
|
| Constructor Summary | |
|---|---|
ClusterNodesTransformerStrategy(Graph graph,
java.util.Collection nodeCollection,
Node superNode)
Construct a clusterer for a given graph. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
_compute()
The computation associated with this strategy. |
Graph |
clusterNodes()
Return the clustered Graph. |
boolean |
hasBackwardMapping()
Specify if this transformation has a mapping from the transformed version to the original version or not. |
boolean |
hasForwardMapping()
Specify if this transformation has a mapping from the original version to the transformed version or not. |
java.lang.Object |
originalVersionOf(java.lang.Object dummy)
Unsupported operation. |
java.lang.Object |
transformedVersionOf(java.lang.Object dummy)
Unsupported operation. |
boolean |
valid()
Always valid. |
| Methods inherited from class ptolemy.graph.analysis.strategy.CachedStrategy |
|---|
_convertResult, _result, cachingStatus, disableCaching, enableCaching, getCachedResult, graph, obsolete, reset, setCachedResult, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ptolemy.graph.analysis.analyzer.GraphAnalyzer |
|---|
graph |
| Methods inherited from interface ptolemy.graph.analysis.analyzer.Analyzer |
|---|
toString |
| Field Detail |
|---|
private Node _superNode
private java.util.Collection _nodeCollection
| Constructor Detail |
|---|
public ClusterNodesTransformerStrategy(Graph graph,
java.util.Collection nodeCollection,
Node superNode)
graph - The given graph.nodeCollection - The collection of nodes to be clustered.superNode - The super node that replaces the clustered nodes.| Method Detail |
|---|
public Graph clusterNodes()
clusterNodes in interface ClusterNodesTransformerpublic boolean hasBackwardMapping()
hasBackwardMapping in interface Transformerpublic boolean hasForwardMapping()
hasForwardMapping in interface Transformerpublic java.lang.Object originalVersionOf(java.lang.Object dummy)
originalVersionOf in interface Transformerdummy - The given object in the transformed graph.
java.lang.UnsupportedOperationException - If this method is called
in any case.public java.lang.Object transformedVersionOf(java.lang.Object dummy)
transformedVersionOf in interface Transformerdummy - The given object in the original graph.
java.lang.UnsupportedOperationException - If this method is called
in any case.public boolean valid()
valid in interface Analyzerprotected java.lang.Object _compute()
_compute in class CachedStrategyObject.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||