org.processmining.mining.graphclustering
Class ClusterNode
java.lang.Object
org.processmining.mining.graphclustering.Node
org.processmining.mining.graphclustering.ClusterNode
- All Implemented Interfaces:
- DotFileWriter
public class ClusterNode
- extends Node
- Author:
- Christian W. Guenther (christian@deckfour.org)
Fields inherited from class org.processmining.mining.graphclustering.Node |
graph, index |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instanceCounter
protected static int instanceCounter
primitives
protected java.util.HashSet<Node> primitives
instanceNumber
protected int instanceNumber
ClusterNode
public ClusterNode(ClusterGraph graph)
resetInstanceCounter
public static void resetInstanceCounter()
getId
public java.lang.String getId()
- Overrides:
getId
in class Node
getInstanceNumber
public int getInstanceNumber()
addNode
public boolean addNode(Node node)
getPrimitives
public java.util.Set<Node> getPrimitives()
containsNode
public boolean containsNode(Node node)
mergeWith
public boolean mergeWith(ClusterNode other)
canMergeWith
public boolean canMergeWith(ClusterNode other)
getPredecessors
public java.util.Set<Node> getPredecessors()
- Overrides:
getPredecessors
in class Node
getSuccessors
public java.util.Set<Node> getSuccessors()
- Overrides:
getSuccessors
in class Node
getFrequency
public double getFrequency()
- Overrides:
getFrequency
in class Node
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class Node
writeToDot
public void writeToDot(java.io.Writer bw)
throws java.io.IOException
- Specified by:
writeToDot
in interface DotFileWriter
- Overrides:
writeToDot
in class Node
- Throws:
java.io.IOException
getClusterGraphPanel
public javax.swing.JPanel getClusterGraphPanel()
throws java.lang.Exception
- Throws:
java.lang.Exception
writeClusterSubgraphToDot
public void writeClusterSubgraphToDot(java.io.Writer bw)
throws java.io.IOException
- Throws:
java.io.IOException
writeEdgesBetweenSetsToDot
protected void writeEdgesBetweenSetsToDot(java.util.Set<Node> sourceSet,
java.util.Set<Node> targetSet,
cern.colt.matrix.DoubleMatrix2D followMatrix,
java.io.Writer bw)
throws java.io.IOException
- Throws:
java.io.IOException
getToolTipText
public java.lang.String getToolTipText()
- Overrides:
getToolTipText
in class Node