D
- distance type.public class ClusterOrderResult<D extends Distance<D>> extends BasicResult implements IterableResult<ClusterOrderEntry<D>>
Modifier and Type | Class and Description |
---|---|
(package private) class |
ClusterOrderResult.ClusterOrderAdapter
Ordering part of the result.
|
(package private) class |
ClusterOrderResult.PredecessorAdapter
Result containing the predecessor ID.
|
(package private) class |
ClusterOrderResult.ReachabilityDistanceAdapter
Result containing the reachability distances.
|
Modifier and Type | Field and Description |
---|---|
private ArrayList<ClusterOrderEntry<D>> |
clusterOrder
Cluster order storage
|
(package private) ModifiableDBIDs |
dbids
The DBIDs we are defined for
|
private HashMap<DBID,ClusterOrderEntry<D>> |
map
Map of object IDs to their cluster order entry
|
Constructor and Description |
---|
ClusterOrderResult(String name,
String shortname)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(ClusterOrderEntry<D> ce)
Add an object to the cluster order.
|
void |
add(DBID id,
DBID predecessor,
D reachability)
Add an object to the cluster order.
|
List<ClusterOrderEntry<D>> |
getClusterOrder()
Retrieve the complete cluster order.
|
Class<?> |
getDistanceClass()
Get the distance class
|
Iterator<ClusterOrderEntry<D>> |
iterator()
The cluster order is iterable
|
getLongName, getShortName
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLongName, getShortName
private ArrayList<ClusterOrderEntry<D extends Distance<D>>> clusterOrder
private HashMap<DBID,ClusterOrderEntry<D extends Distance<D>>> map
ModifiableDBIDs dbids
public List<ClusterOrderEntry<D>> getClusterOrder()
public Iterator<ClusterOrderEntry<D>> iterator()
iterator
in interface IterableResult<ClusterOrderEntry<D extends Distance<D>>>
iterator
in interface Iterable<ClusterOrderEntry<D extends Distance<D>>>
public void add(DBID id, DBID predecessor, D reachability)
id
- Object IDpredecessor
- Predecessor IDreachability
- Reachability distancepublic void add(ClusterOrderEntry<D> ce)
ce
- Entrypublic Class<?> getDistanceClass()
null
for an all-undefined result!