uk.ac.starlink.table.join
Class RowLink2

java.lang.Object
  extended by uk.ac.starlink.table.join.RowLink
      extended by uk.ac.starlink.table.join.RowLink2
All Implemented Interfaces:
java.lang.Comparable

public class RowLink2
extends RowLink

RowLink subclass which specifically contains two items (a pair).

As well as standard RowLink functionality, this object can also contain a 'score', which is an uninterpreted number. Typically this is used to record how good the match represented by a link is. This value is not taken account of in either compareTo, equals or hashCode methods.

Since:
23 Nov 2007

Constructor Summary
RowLink2(RowRef rowA, RowRef rowB)
          Constructor.
 
Method Summary
 double getScore()
          Returns the score associated with this link.
 void setScore(double score)
          Sets the score associated with this link.
 
Methods inherited from class uk.ac.starlink.table.join.RowLink
compareTo, equals, getRef, hashCode, size, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RowLink2

public RowLink2(RowRef rowA,
                RowRef rowB)
Constructor.

Parameters:
rowA - one row
rowB - the other row
Method Detail

setScore

public void setScore(double score)
Sets the score associated with this link.

Parameters:
score - new score

getScore

public double getScore()
Returns the score associated with this link. If it has not been set explicitly, it will be NaN.

Returns:
score

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.