com.karmasphere.share.persist
Class Fact

java.lang.Object
  extended by com.karmasphere.share.persist.Persistent
      extended by com.karmasphere.share.persist.PersistentRecord<Feed,Identity>
          extended by com.karmasphere.share.persist.Fact

public class Fact
extends PersistentRecord<Feed,Identity>


Field Summary
static int SCORE_RANGE
           
 
Constructor Summary
Fact(Feed feed, Identity identity)
           
Fact(Feed feed, Identity identity, int value, String data)
           
 
Method Summary
 boolean equals(Object o)
           
 String getData()
           
 Feed getFeed()
           
 Identity getIdentity()
           
 int getNormalizedValue()
           
 double getNormalizedValue(double range)
           
 Identity getPersistenceKey()
           
 Feed getPersistentContainer()
           
 int getValue()
           
 int hashCode()
           
 void setData(String data)
           
 void setFeed(Feed feed)
           
 void setIdentity(Identity identity)
           
 void setPersistenceKey(Identity i)
           
 void setValue(int value)
           
 String toString()
          Returns a simple String representation of this Persistent.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCORE_RANGE

public static final int SCORE_RANGE
See Also:
Constant Field Values
Constructor Detail

Fact

public Fact(Feed feed,
            Identity identity,
            int value,
            String data)

Fact

public Fact(Feed feed,
            Identity identity)
Method Detail

getPersistentContainer

public Feed getPersistentContainer()
Specified by:
getPersistentContainer in class PersistentRecord<Feed,Identity>

getPersistenceKey

public Identity getPersistenceKey()
Specified by:
getPersistenceKey in class PersistentRecord<Feed,Identity>

setPersistenceKey

public void setPersistenceKey(Identity i)
Specified by:
setPersistenceKey in class PersistentRecord<Feed,Identity>

getFeed

public Feed getFeed()

setFeed

public void setFeed(Feed feed)

getIdentity

public Identity getIdentity()

setIdentity

public void setIdentity(Identity identity)

getValue

public int getValue()

setValue

public void setValue(int value)

getNormalizedValue

public double getNormalizedValue(double range)

getNormalizedValue

public int getNormalizedValue()

getData

public String getData()

setData

public void setData(String data)

equals

public boolean equals(Object o)
Specified by:
equals in class PersistentRecord<Feed,Identity>

hashCode

public int hashCode()
Specified by:
hashCode in class PersistentRecord<Feed,Identity>

toString

public String toString()
Description copied from class: Persistent
Returns a simple String representation of this Persistent.

Overrides:
toString in class Persistent


Copyright © 2004-2005 Karamsphere. All Rights Reserved.