class NearestScore extends BaseScore
| Constructor and Description |
|---|
NearestScore() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getInitialScore(Match match,
Signature signature,
int lastNodeCharacter)
Sets any initial score before each node is evaluated.
|
protected int |
getScore(Match match,
Node node)
If the sub string is contained in the target but in a different position
return the difference between the two sub string positions.
|
evaluateSignaturesprotected int getInitialScore(Match match, Signature signature, int lastNodeCharacter) throws IOException
BaseScoregetInitialScore in class BaseScoreIOExceptionprotected int getScore(Match match, Node node) throws IOException
getScore in class BaseScoreIOException