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.


Field Summary
private  List<E> firstAssignments
          The assignments to the first routing object.
private  D firstCoveringRadius
          The first covering radius.
private  DBID id1
          The id of the first routing object.
private  DBID 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(DBID id1, DBID 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 assignments to the first routing object.
 D getFirstCoveringRadius()
          Returns the first covering radius.
 DBID getFirstRoutingObject()
          Returns the id of the first routing object.
 List<E> getSecondAssignments()
          Returns the assignments to the second routing object.
 D getSecondCoveringRadius()
          Returns the second covering radius.
 DBID 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 DBID id1
The id of the first routing object.


id2

private DBID 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(DBID id1,
                   DBID 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 DBID getFirstRoutingObject()
Returns the id of the first routing object.

Returns:
the id of the first routing object

getSecondRoutingObject

public DBID 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 assignments to the first routing object.

Returns:
the assignments to the first routing object

getSecondAssignments

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

Returns:
the assignments to the second routing object

Release 0.4.0 (2011-09-20_1324)