|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fido.linguistic.components.NounPhrase
Represents a noun, with all associated components such as an optional article, all of the adjectives, and all prepositional phrases.
Field Summary | |
static int |
CREATE_INSTANCE
Constant used by getAction() and setAction() |
static int |
EXISTING_CLASS
Constant used by getAction() and setAction() |
static int |
EXISTING_INSTANCE
Constant used by getAction() and setAction() |
Constructor Summary | |
NounPhrase()
Creates a new NounPhrase object with no adjectives or prepositional phrases. |
Method Summary | |
void |
addAdjective(AdjectiveClass adj)
Adds an AdjectiveClass to this noun phrase. |
void |
addPrepositionalPhrase(PrepositionalPhrase phrase)
Adds an PrepositionalPhrase to this noun phrase. |
int |
getAction()
Returns the action the system should perform when resolving this noun phrase. |
java.util.Iterator |
getAdjectives()
Returns an Iterator over all of the AdjectiveClass modifying this noun phrase. |
int |
getArticleType()
Returns the type of the article. |
NounClass |
getNounClass()
Returns the NounClass for this noun phrase. |
java.util.Iterator |
getPrepositionalPhrases()
Returns an Iterator over all of the PrepositionalPhrases modifying this noun phrase. |
void |
setAction(int action)
When resolving nouns in the Resolver module, this method is used to store the action the system should take when resolving the noun. |
void |
setArticleType(int type)
Sets the type for the article. |
void |
setNounClass(NounClass noun)
Sets the NounClass for this noun phrase. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int EXISTING_INSTANCE
public static final int CREATE_INSTANCE
public static final int EXISTING_CLASS
Constructor Detail |
public NounPhrase()
Method Detail |
public int getAction()
setAction(int)
public void setAction(int action)
Discourse
,
ObjectTable
,
NounResolver.resolve(NounPhrase)
public int getArticleType()
ArticleTable
public void setArticleType(int type)
ArticleTable
public NounClass getNounClass()
public void setNounClass(NounClass noun)
noun
- The NounClass for this noun phrase.public java.util.Iterator getAdjectives()
public void addAdjective(AdjectiveClass adj)
adj
- Adjective to add.public java.util.Iterator getPrepositionalPhrases()
public void addPrepositionalPhrase(PrepositionalPhrase phrase)
phrase
- PrepositionalPhrase to add.
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |