org.processmining.mining.graphclustering
Class ClusterNode

java.lang.Object
  extended by org.processmining.mining.graphclustering.Node
      extended by org.processmining.mining.graphclustering.ClusterNode
All Implemented Interfaces:
DotFileWriter

public class ClusterNode
extends Node

Author:
Christian W. Guenther (christian@deckfour.org)

Field Summary
protected static int instanceCounter
           
protected  int instanceNumber
           
protected  java.util.HashSet<Node> primitives
           
 
Fields inherited from class org.processmining.mining.graphclustering.Node
graph, index
 
Constructor Summary
ClusterNode(ClusterGraph graph)
           
 
Method Summary
 boolean addNode(Node node)
           
 boolean canMergeWith(ClusterNode other)
           
 boolean containsNode(Node node)
           
 boolean equals(java.lang.Object o)
           
 javax.swing.JPanel getClusterGraphPanel()
           
 double getFrequency()
           
 java.lang.String getId()
           
 int getInstanceNumber()
           
 java.util.Set<Node> getPredecessors()
           
 java.util.Set<Node> getPrimitives()
           
 java.util.Set<Node> getSuccessors()
           
 java.lang.String getToolTipText()
           
 boolean mergeWith(ClusterNode other)
           
static void resetInstanceCounter()
           
 void writeClusterSubgraphToDot(java.io.Writer bw)
           
protected  void writeEdgesBetweenSetsToDot(java.util.Set<Node> sourceSet, java.util.Set<Node> targetSet, cern.colt.matrix.DoubleMatrix2D followMatrix, java.io.Writer bw)
           
 void writeToDot(java.io.Writer bw)
           
 
Methods inherited from class org.processmining.mining.graphclustering.Node
getElement, getGraph, getIndex, getType, isDirectlyConnectedTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceCounter

protected static int instanceCounter

primitives

protected java.util.HashSet<Node> primitives

instanceNumber

protected int instanceNumber
Constructor Detail

ClusterNode

public ClusterNode(ClusterGraph graph)
Method Detail

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