fiftyone.mobile.detection
Class NearestScore

java.lang.Object
  extended by fiftyone.mobile.detection.BaseScore
      extended by fiftyone.mobile.detection.NearestScore

 class NearestScore
extends BaseScore

Used to determine if all the signature node sub strings are in the target just at different character positions.


Constructor Summary
NearestScore()
           
 
Method Summary
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.
 
Methods inherited from class fiftyone.mobile.detection.BaseScore
evaluateSignatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NearestScore

NearestScore()
Method Detail

getInitialScore

protected int getInitialScore(Match match,
                              Signature signature,
                              int lastNodeCharacter)
                       throws IOException
Description copied from class: BaseScore
Sets any initial score before each node is evaluated.

Specified by:
getInitialScore in class BaseScore
Returns:
Throws:
IOException

getScore

protected int getScore(Match match,
                       Node node)
                throws IOException
If the sub string is contained in the target but in a different position return the difference between the two sub string positions.

Specified by:
getScore in class BaseScore
Returns:
Throws:
IOException