public class RowLink2 extends RowLink
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.
Constructor and Description |
---|
RowLink2(RowRef refA,
RowRef refB)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
RowRef |
getRef(int i)
Returns the
i th row ref in this ordered
sequence of refs. |
double |
getScore()
Returns the score associated with this link.
|
void |
setScore(double score)
Sets the score associated with this link.
|
int |
size()
Returns the number of rows linked by this object.
|
public int size()
RowLink
public RowRef getRef(int i)
RowLink
i
th row ref in this ordered
sequence of refs. The sequence must be as defined by
RowRef.compareTo
.public void setScore(double score)
score
- new scorepublic double getScore()
NaN
.Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.