org.hd.d.pg2k.ai.scorer.fixed
Class MaxScore

java.lang.Object
  extended by org.hd.d.pg2k.ai.scorer.AbstractScorer
      extended by org.hd.d.pg2k.ai.scorer.AbstractNonParamScorer
          extended by org.hd.d.pg2k.ai.scorer.fixed.MaxScore
All Implemented Interfaces:
BadScorer, ScorerIF

public final class MaxScore
extends AbstractNonParamScorer
implements BadScorer

Returns a fixed maximum score with full confidence (no nulls). Can be used as a test (ie to ensure that it gets rejected as "bad").

Author:
dhd

Field Summary
 
Fields inherited from class org.hd.d.pg2k.ai.scorer.AbstractScorer
nameAndParameters, parameterNameRegex, parameterSepRegex, scorerNameRegex, SEPARATOR
 
Constructor Summary
MaxScore()
           
 
Method Summary
 ScoreAndConf computeScoreAndConfidence(SimpleExhibitPipelineIF dataSource, java.lang.String exhibitName)
          Returns fixed maximum-score, maximum-confidence result, ignoring its input.
 
Methods inherited from class org.hd.d.pg2k.ai.scorer.AbstractNonParamScorer
createVariant, createVariant
 
Methods inherited from class org.hd.d.pg2k.ai.scorer.AbstractScorer
canonicalise, createPerturbedVariant, getBaseName, getDefaultName, getNameAndParameters, getParameterDefsAndValues, getPerturbedDefsAndValues, isValidParameterName, isValidScorerName, paramListAsMap, paramListAsString, parseNameAndParameters, similarNParams, verySimilar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxScore

public MaxScore()
Method Detail

computeScoreAndConfidence

public ScoreAndConf computeScoreAndConfidence(SimpleExhibitPipelineIF dataSource,
                                              java.lang.String exhibitName)
Returns fixed maximum-score, maximum-confidence result, ignoring its input.

Specified by:
computeScoreAndConfidence in interface ScorerIF
Parameters:
dataSource - souce of exhibit data and metadata; never null
exhibitName - name of exhibit; must be syntactically valid and not null

DHD Multimedia Gallery V1.50.55

Copyright (c) 1996-2008, Damon Hart-Davis. All rights reserved.