net.siefkes.nlstego.predict
Class PredictedToken

java.lang.Object
  extended by net.siefkes.nlstego.predict.PredictedToken
All Implemented Interfaces:
Serializable

public class PredictedToken
extends Object
implements Serializable

Wrapper for a predicted token. Contains the token and its probability.

Version:
$Revision: 1.7 $, $Date: 2005/07/12 17:02:17 $, $Author: siefkes $
Author:
Christian Siefkes
See Also:
Serialized Form

Constructor Summary
PredictedToken(String theToken, double theProbability)
          Creates a new instance.
 
Method Summary
 double getProbability()
          Returns the probability of this token.
 String getToken()
          Returns the String representation of this token.
 String toString()
          Returns a String that represents the value of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredictedToken

public PredictedToken(String theToken,
                      double theProbability)
Creates a new instance.

Parameters:
theToken - the String representation of this token
theProbability - the probability of this token
Method Detail

toString

public final String toString()
Returns a String that represents the value of this object.

Created (30.10.2001 10:46:50) by Christian Siefkes.

Overrides:
toString in class Object
Returns:
a string representation of the receiver

getProbability

public final double getProbability()
Returns the probability of this token.

Returns:
the probability

getToken

public final String getToken()
Returns the String representation of this token.

Returns:
the String representation


Copyright © 2003-2005 Christian Siefkes. All Rights Reserved.