TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification

org.eclipse.hyades.trace.views.internal
Class UniqueValueClassification

java.lang.Object
  extended byorg.eclipse.hyades.trace.views.internal.Classification
      extended byorg.eclipse.hyades.trace.views.internal.CategoricalClassification
          extended byorg.eclipse.hyades.trace.views.internal.UniqueValueClassification

public class UniqueValueClassification
extends CategoricalClassification


Field Summary
protected  java.util.ArrayList _labels
           
protected  java.util.ArrayList _values
           
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.Classification
_nullBucketLabel, NULL_BUCKET
 
Constructor Summary
UniqueValueClassification()
           
 
Method Summary
 void addValue(java.lang.Object value, java.lang.String label)
           
 int bucket(java.lang.Object value)
           
 void classify(java.util.ArrayList values)
           
 java.lang.String label(int n)
           
 int numBuckets()
           
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.Classification
setNullBucketLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_values

protected java.util.ArrayList _values

_labels

protected java.util.ArrayList _labels
Constructor Detail

UniqueValueClassification

public UniqueValueClassification()
Method Detail

addValue

public void addValue(java.lang.Object value,
                     java.lang.String label)

bucket

public int bucket(java.lang.Object value)
Specified by:
bucket in class CategoricalClassification

classify

public void classify(java.util.ArrayList values)
Specified by:
classify in class Classification

label

public java.lang.String label(int n)
Specified by:
label in class Classification

numBuckets

public int numBuckets()
Specified by:
numBuckets in class Classification

TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification