fiftyone.mobile.detection
Class BaseScore

java.lang.Object
  extended by fiftyone.mobile.detection.BaseScore
Direct Known Subclasses:
ClosestScore, NearestScore

abstract class BaseScore
extends Object


Constructor Summary
BaseScore()
           
 
Method Summary
private  void evaluateSignature(Match match, Signature signature, int lastNodeCharacter)
           
(package private)  void evaluateSignatures(Match match, Match.RankedSignatureIterator closestSignatures)
           
protected abstract  int getInitialScore(Match match, Signature signature, int lastNodeCharacter)
          Sets any initial score before each node is evaluated.
protected abstract  int getScore(Match match, Node node)
          Gets the score for the specific node of the signature.
private  int getScore(Match match, Signature signature, int lastNodeCharacter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseScore

BaseScore()
Method Detail

getScore

protected abstract int getScore(Match match,
                                Node node)
                         throws IOException
Gets the score for the specific node of the signature.

Parameters:
match -
node -
Returns:
Throws:
IOException

getInitialScore

protected abstract int getInitialScore(Match match,
                                       Signature signature,
                                       int lastNodeCharacter)
                                throws IOException
Sets any initial score before each node is evaluated.

Parameters:
match -
signature -
lastNodeCharacter -
Returns:
Throws:
IOException

evaluateSignatures

void evaluateSignatures(Match match,
                        Match.RankedSignatureIterator closestSignatures)
                  throws IOException
Throws:
IOException

evaluateSignature

private void evaluateSignature(Match match,
                               Signature signature,
                               int lastNodeCharacter)
                        throws IOException
Throws:
IOException

getScore

private int getScore(Match match,
                     Signature signature,
                     int lastNodeCharacter)
              throws IOException
Throws:
IOException