|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOntologyEntityFinder.Entity
public class Entity
Class describing an ontology entity
Field Summary | |
---|---|
private java.lang.String |
name
Ontology entity name |
private java.util.HashSet<java.lang.String> |
words
Set of words associated with the entity |
Constructor Summary | |
---|---|
Entity(java.lang.String n)
Standard constructor |
Method Summary | |
---|---|
void |
addWord(java.util.LinkedList<java.lang.String> list)
Add all the words from the given list |
void |
addWord(java.lang.String word)
Add a word to this entity |
double |
compareWord(java.util.LinkedList<java.lang.String> listStr)
Compare all the words of the list with all the words of the entity and return the mean of the highest value for each word |
double |
compareWord(java.lang.String str)
Compare a word with all the words of the entity and return the highest result |
boolean |
containsWord(java.lang.String word)
|
void |
delWord(java.util.LinkedList<java.lang.String> list)
Delete all the entity words who appears in the given list |
void |
delWord(java.lang.String word)
Remove a word from this entity |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private java.util.HashSet<java.lang.String> words
Constructor Detail |
---|
public Entity(java.lang.String n)
n
- the entity nameMethod Detail |
---|
public java.lang.String getName()
public void addWord(java.lang.String word)
word
- The word to addpublic void addWord(java.util.LinkedList<java.lang.String> list)
list
- the list of words to addpublic void delWord(java.lang.String word)
word
- the word to removepublic boolean containsWord(java.lang.String word)
word
- the word to look for
public void delWord(java.util.LinkedList<java.lang.String> list)
list
- words to removepublic double compareWord(java.lang.String str)
str
- the word to compare with the entity
public double compareWord(java.util.LinkedList<java.lang.String> listStr)
listStr
- the list of words to compare with the entity
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |