org.jasen.core.engine
Class JasenToken

java.lang.Object
  extended byorg.jasen.core.engine.JasenToken
All Implemented Interfaces:
Serializable

public class JasenToken
extends Object
implements Serializable

A "token" is essentially a word. Tokens are stored inside the JasenMap and have various counts associated

Author:
Jason Polites
See Also:
Serialized Form

Constructor Summary
JasenToken()
           
 
Method Summary
 int getHamCount()
          Returns the number of times this token was discovered in a Ham email
 int getSpamCount()
          Returns the number of times this token was discovered in a Spam email
 void incrementHam()
          Conventience method to increment the ham count by 1
 void incrementSpam()
          Conventience method to increment the spam count by 1
 void setHamCount(int hamCount)
          Sets the number of times this token was discovered in a Ham email
 void setSpamCount(int spamCount)
          Sets the number of times this token was discovered in a Spam email
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JasenToken

public JasenToken()
Method Detail

getHamCount

public int getHamCount()
Returns the number of times this token was discovered in a Ham email

Returns:
Returns the hamCount.

setHamCount

public void setHamCount(int hamCount)
Sets the number of times this token was discovered in a Ham email

Parameters:
hamCount - The hamCount to set.

getSpamCount

public int getSpamCount()
Returns the number of times this token was discovered in a Spam email

Returns:
Returns the spamCount.

setSpamCount

public void setSpamCount(int spamCount)
Sets the number of times this token was discovered in a Spam email

Parameters:
spamCount - The spamCount to set.

incrementHam

public void incrementHam()
Conventience method to increment the ham count by 1


incrementSpam

public void incrementSpam()
Conventience method to increment the spam count by 1