|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.verbalizer.SymbolPlanner
public abstract class SymbolPlanner
An absract class with functionality common to the different Planners, which store natural-language equivalents of various narrative elements.
Constructor Summary | |
---|---|
SymbolPlanner()
|
Method Summary | |
---|---|
int |
getAssumedAgentArg()
|
java.lang.String |
getMenuName()
|
DiscourseExecutable |
getPlan(VerbTense tense)
|
java.lang.String |
getPrompt(int argNumber)
|
boolean |
hasMenuName()
|
boolean |
hasPlan(VerbTense tense)
|
boolean |
hasPrompt(int argNumber)
|
boolean |
isRaising()
Get whether this symbol is a "raising" verb (or other POS), i.e., requires AND locks its assumed agent for any nested frames. |
void |
setAssumedAgentArg(int arg,
boolean raisesAgent)
If this frame sets an assumed agent for nested frames, this specified which argument contains the appropriate character. |
void |
setMenuName(java.lang.String name)
|
void |
setPlan(VerbTense tense,
DiscourseExecutable plan)
|
void |
setPostroll(DiscourseExecutable plan)
|
void |
setPreroll(DiscourseExecutable plan)
Set a "preroll" discourse plan that will be prepended to the discourse plan retrieved for all tenses. |
void |
setPrompt(int argNumber,
java.lang.String prompt)
|
boolean |
setsAssumedAgent()
Returns whether this frame sets an assumed agent for nested frames. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SymbolPlanner()
Method Detail |
---|
public void setPlan(VerbTense tense, DiscourseExecutable plan) throws Scheherexception
Scheherexception
public void setPreroll(DiscourseExecutable plan) throws Scheherexception
Scheherexception
public void setPostroll(DiscourseExecutable plan) throws Scheherexception
Scheherexception
public DiscourseExecutable getPlan(VerbTense tense) throws Scheherexception
Scheherexception
public boolean hasPlan(VerbTense tense) throws Scheherexception
Scheherexception
public void setPrompt(int argNumber, java.lang.String prompt) throws Scheherexception
Scheherexception
public java.lang.String getPrompt(int argNumber) throws Scheherexception
Scheherexception
public boolean hasPrompt(int argNumber)
public void setMenuName(java.lang.String name) throws Scheherexception
Scheherexception
public boolean hasMenuName()
public java.lang.String getMenuName() throws Scheherexception
Scheherexception
public void setAssumedAgentArg(int arg, boolean raisesAgent) throws Scheherexception
raisesAgent
- Set true of the nested frame MUST be
agent-compatible and have the agent specified in arg. For
example, "appeal for action" -- "Alice appeals to Bob to die";
do not allow "Alice appeals to Bob for Charlie to die" in which
the assumed agent set (Bob) for the "die" frame is different
than the "die" agent chosen (Charlie). Another example is
"able" -- no "Alice is able for Bob to die." Such verbs are
known as "raising" verbs.Scheherexception
public boolean setsAssumedAgent()
public int getAssumedAgentArg() throws Scheherexception
Scheherexception
public boolean isRaising()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |