|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.firstpartners.rp.mid.category.BasicCategory
public class BasicCategory
A Category is a set of Data. Many Categories make up a knowledgebase. This is a basic implementation of a Category
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
logger
Logger for this class and subclasses |
private double |
m_categoryScore
Direct score of the category |
private IDataExtractor |
m_extractor
Extractor handler of the category |
private java.lang.String |
m_lastUpdate
Time stamp for last category update |
private java.lang.String |
m_name
Category name |
private java.lang.String |
m_original
Original category location |
private java.lang.String |
m_uri
Uri location of the category |
Constructor Summary | |
---|---|
BasicCategory(java.lang.String original,
java.lang.String name,
java.lang.String uri,
IDataExtractor extractor)
Creates a new BasicCategory object. |
Method Summary | |
---|---|
void |
generateCategoryData(ICategoryManager manager)
Construct the category 1. |
double |
getCalculatedScore()
Get the calculated score of the category |
java.lang.String |
getCategoryName()
Get the name of this Category |
double |
getCategoryScore()
Get the category scroe |
IDataExtractor |
getDataSource()
Get a Handle to the Datasource used when creating this Category ie where we got the original data from |
java.lang.String |
getLastUpdate()
Get the last update of the document |
java.lang.String |
getLocation()
Get the category uri location |
java.lang.String |
getOriginalLocation()
Get original location of the category |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger logger
private java.lang.String m_original
private java.lang.String m_name
private java.lang.String m_uri
private IDataExtractor m_extractor
private double m_categoryScore
private java.lang.String m_lastUpdate
Constructor Detail |
---|
public BasicCategory(java.lang.String original, java.lang.String name, java.lang.String uri, IDataExtractor extractor)
original
- Original locationname
- Category nameuri
- URI of the information to be addedextractor
- The extractor which will handle the informationMethod Detail |
---|
public void generateCategoryData(ICategoryManager manager) throws RpException
manager
- Manager responsable for
RpException
- Error occur in process the informationpublic java.lang.String getOriginalLocation()
getOriginalLocation
in interface ICategory
public java.lang.String getCategoryName()
getCategoryName
in interface ICategory
public IDataExtractor getDataSource()
getDataSource
in interface ICategory
public java.lang.String getLocation()
getLocation
in interface ICategory
public java.lang.String getLastUpdate()
getLastUpdate
in interface ICategory
public double getCategoryScore()
getCategoryScore
in interface ICategory
public double getCalculatedScore()
getCalculatedScore
in interface ICategory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |