solver
Class HierarchicalClusteringInstance

java.lang.Object
  extended by solver.HierarchicalClusteringInstance

public class HierarchicalClusteringInstance
extends java.lang.Object

Represents a Hierarchical Clustering instance.

Version:
1.0
Author:
Sepp Hartung

Field Summary
private  Conflicts conflicts
           
private  DistanceFunction distance
           
private  int parameterValue
           
(package private)  java.util.Vector<Status> status
           
 
Constructor Summary
HierarchicalClusteringInstance(DistanceFunction distance, int maxCorrections)
          Constructs a Hierarchical Clustering instance.
 
Method Summary
 void decreaseParameter()
           
 Conflicts getConflictStorage()
           
 DistanceFunction getDistanceFunction()
           
 int getParameterValue()
           
 int hashCode()
           
 void increaseParameter()
           
 int numberOfElements()
           
 void reComputeConflicts()
           
 void restoreStatus(int instanceID)
           
 int saveStatus()
           
 void setConflicts(Conflicts conflicts2)
           
 void setDistanceFunction(DistanceFunction newDistanceFunction)
           
 void setParameter(int parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conflicts

private Conflicts conflicts

distance

private DistanceFunction distance

parameterValue

private int parameterValue

status

java.util.Vector<Status> status
Constructor Detail

HierarchicalClusteringInstance

public HierarchicalClusteringInstance(DistanceFunction distance,
                                      int maxCorrections)
Constructs a Hierarchical Clustering instance.

Parameters:
distance - distance function which should be transformed into an ultrametric
maxCorrections - max. number of corrections
Method Detail

decreaseParameter

public void decreaseParameter()

getConflictStorage

public Conflicts getConflictStorage()

getDistanceFunction

public DistanceFunction getDistanceFunction()

getParameterValue

public int getParameterValue()

increaseParameter

public void increaseParameter()

numberOfElements

public int numberOfElements()

reComputeConflicts

public void reComputeConflicts()

setConflicts

public void setConflicts(Conflicts conflicts2)

setDistanceFunction

public void setDistanceFunction(DistanceFunction newDistanceFunction)

setParameter

public void setParameter(int parameter)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

saveStatus

public int saveStatus()

restoreStatus

public void restoreStatus(int instanceID)