ca.uottawa.balie
Class LanguageIdentificationGuess

java.lang.Object
  extended by ca.uottawa.balie.LanguageIdentificationGuess
All Implemented Interfaces:
java.lang.Comparable

public class LanguageIdentificationGuess
extends java.lang.Object
implements java.lang.Comparable

A guess is compose of a language (e.g.: French) along with its probability (ex.: 0.9).

Author:
nadeaud

Constructor Summary
LanguageIdentificationGuess(java.lang.String pi_Language, java.lang.Double pi_Probability)
          Creates a guess.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String Language()
          Gets the language.
 java.lang.Double Probability()
          Gets the probability of a language.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageIdentificationGuess

public LanguageIdentificationGuess(java.lang.String pi_Language,
                                   java.lang.Double pi_Probability)
Creates a guess.

Parameters:
pi_Language - The language
pi_Probability - The probability of this language
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

Language

public java.lang.String Language()
Gets the language.

Returns:
Language String (see Balie for enumeration)
See Also:
Balie

Probability

public java.lang.Double Probability()
Gets the probability of a language.

Returns:
Probability [0,1]