net.aerith.misao.util
Class MatchingFailedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--net.aerith.misao.util.MatchingFailedException

public class MatchingFailedException
extends java.lang.Exception

The MatchingFailedException is an exception thrown if the matching process is failed.

See Also:
Serialized Form

Field Summary
protected  MapFunction map_function
          The map function.
protected  double score
          The matching score.
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
MatchingFailedException()
          Constructs an MatchingFailedException.
MatchingFailedException(MapFunction failed_mf, double score)
          Constructs an MatchingFailedException with the calculated map function.
 
Method Summary
 MapFunction getMapFunction()
          Gets the calculated map function.
 double getScore()
          Gets the matching score.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

map_function

protected MapFunction map_function
The map function.

score

protected double score
The matching score.
Constructor Detail

MatchingFailedException

public MatchingFailedException()
Constructs an MatchingFailedException.

MatchingFailedException

public MatchingFailedException(MapFunction failed_mf,
                               double score)
Constructs an MatchingFailedException with the calculated map function.
Parameters:
failed_mf - the calculated map function.
score - the matching score.
Method Detail

getMapFunction

public MapFunction getMapFunction()
Gets the calculated map function.
Returns:
the calculated map function.

getScore

public double getScore()
Gets the matching score. It must be invoked after the run method was invoked.
Returns:
the matching score.