Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.split
Class Assignments<D extends Distance<D>,E extends MTreeEntry<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.split.Assignments<D,E>
Type Parameters:
D - the type of Distance used in the M-Tree
E - the type of MetricalEntry used in the M-Tree

public class Assignments<D extends Distance<D>,E extends MTreeEntry<D>>
extends Object

Encapsulates the attributes of an assignment during a split.

Author:
Elke Achtert

Field Summary
private  List<E> firstAssignments
          The assignments to the first routing object.
private  D firstCoveringRadius
          The first covering radius.
private  Integer id1
          The id of the first routing object.
private  Integer id2
          The id of the second routing object.
private  List<E> secondAssignments
          The assignments to the second routing object.
private  D secondCoveringRadius
          The second covering radius.
 
Constructor Summary
Assignments(Integer id1, Integer id2, D firstCoveringRadius, D secondCoveringRadius, Set<E> firstAssignments, Set<E> secondAssignments)
          Provides an assignment during a split of an MTree node.
 
Method Summary
 List<E> getFirstAssignments()
          Returns the assignmnets to the first routing object.
 D getFirstCoveringRadius()
          Returns the first covering radius.
 Integer getFirstRoutingObject()
          Returns the id of the first routing object.
 List<E> getSecondAssignments()
          Returns the assignmnets to the second routing object.
 D getSecondCoveringRadius()
          Returns the second covering radius.
 Integer getSecondRoutingObject()
          Returns the id of the second routing object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id1

private Integer id1
The id of the first routing object.


id2

private Integer id2
The id of the second routing object.


firstCoveringRadius

private D extends Distance<D> firstCoveringRadius
The first covering radius.


secondCoveringRadius

private D extends Distance<D> secondCoveringRadius
The second covering radius.


firstAssignments

private List<E extends MTreeEntry<D>> firstAssignments
The assignments to the first routing object.


secondAssignments

private List<E extends MTreeEntry<D>> secondAssignments
The assignments to the second routing object.

Constructor Detail

Assignments

public Assignments(Integer id1,
                   Integer id2,
                   D firstCoveringRadius,
                   D secondCoveringRadius,
                   Set<E> firstAssignments,
                   Set<E> secondAssignments)
Provides an assignment during a split of an MTree node.

Parameters:
id1 - the first routing object
id2 - the second routing object
firstCoveringRadius - the first covering radius
secondCoveringRadius - the second covering radius
firstAssignments - the assignments to the first routing object
secondAssignments - the assignments to the second routing object
Method Detail

getFirstRoutingObject

public Integer getFirstRoutingObject()
Returns the id of the first routing object.

Returns:
the id of the first routing object

getSecondRoutingObject

public Integer getSecondRoutingObject()
Returns the id of the second routing object.

Returns:
the id of the second routing object

getFirstCoveringRadius

public D getFirstCoveringRadius()
Returns the first covering radius.

Returns:
the first covering radius

getSecondCoveringRadius

public D getSecondCoveringRadius()
Returns the second covering radius.

Returns:
the second covering radius

getFirstAssignments

public List<E> getFirstAssignments()
Returns the assignmnets to the first routing object.

Returns:
the assignmnets to the first routing object

getSecondAssignments

public List<E> getSecondAssignments()
Returns the assignmnets to the second routing object.

Returns:
the assignmnets to the second routing object

Release 0.2 (2009-07-06_1820)