|
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.Sentence
Concrete subclass of Clause that identifies the user input as having a verb. The input will either be a Fragment or a Sentence. This class holds all components associated with the input.
Field Summary | |
static int |
COMMAND
Constant value for setMood() and getMood() |
static int |
INFORMATION
Constant value for setMood() and getMood() |
static int |
QUESTION
Constant value for setMood() and getMood() |
Constructor Summary | |
Sentence()
Creates a new empty Sentence object. |
Method Summary | |
Noun |
getIndirectObject()
Returns the Noun in the indirect object slot. |
int |
getMood()
Returns the Mood for the sentence. |
AdjectiveClass |
getPredicateAdjective()
Returns the AdjectiveClass in the predicate adjective slot. |
Noun |
getPredicateNoun()
Returns the Noun in the predicate noun slot. |
Noun |
getSubject()
Returns the Noun in the subject slot. |
VerbPhrase |
getVerbPhrase()
Returns the VerbPhrase for this sentence. |
void |
setIndirectObject(Noun indirectObject)
Sets the indirect object slot to the given Noun. |
void |
setMood(int mood)
Sets the mood of the sentence. |
void |
setPredicateAdjective(AdjectiveClass predicateAdjective)
Sets the predicate adjective slot to the given AdjectiveClass. |
void |
setPredicateNoun(Noun predicateNoun)
Sets the predicate noun slot to the given noun. |
void |
setSubject(Noun subject)
Sets the subject slot to the given Noun. |
void |
setVerbPhrase(VerbPhrase verb)
Sets the VerbPhrase for this sentence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int INFORMATION
public static final int COMMAND
public static final int QUESTION
Constructor Detail |
public Sentence()
Method Detail |
public void setMood(int mood)
mood
- Mood for the sentence.SentenceComponents
public int getMood()
setMood(int)
public void setSubject(Noun subject)
subject
- Subject of the sentence.public Noun getSubject()
public void setIndirectObject(Noun indirectObject)
indirectObject
- Indirect object of the sentence.public Noun getIndirectObject()
public void setPredicateNoun(Noun predicateNoun)
predicateNoun
- Predicate noun of the sentence.public Noun getPredicateNoun()
public void setPredicateAdjective(AdjectiveClass predicateAdjective)
predicateAdjective
- Predicate adjective of the sentence.public AdjectiveClass getPredicateAdjective()
public void setVerbPhrase(VerbPhrase verb)
verb
- The VerbPhrase for this sentence.public VerbPhrase getVerbPhrase()
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |