story.scheherazade.verbalizer
Class NounPlanner

java.lang.Object
  extended by story.scheherazade.verbalizer.SymbolPlanner
      extended by story.scheherazade.verbalizer.NounPlanner

public class NounPlanner
extends SymbolPlanner


Field Summary
static NounPlanner STANDARD_CONTINUOUS_FEMALE
           
static NounPlanner STANDARD_CONTINUOUS_MALE
           
static NounPlanner STANDARD_CONTINUOUS_UNGENDERED
           
static NounPlanner STANDARD_DISCRETE_FEMALE
           
static NounPlanner STANDARD_DISCRETE_MALE
           
static NounPlanner STANDARD_DISCRETE_UNGENDERED
           
 
Constructor Summary
NounPlanner(NounType type, boolean proper)
           
 
Method Summary
 PropDiscreteness getDiscreteness()
           
 CharacterGender getGender()
          Return the default gender, possibly null if it has not been set.
 java.lang.Boolean getGiven()
          Return the always-given or always-new bit, possibly null if it has not been set.
 DiscourseExecutable getPlan(NounPlurality plurality)
           
static DiscourseExecutable getStandardTypePlan(NounType type, NounPlurality plurality)
           
 NounType getType()
           
 DiscourseExecutable getTypePlan(NounPlurality plurality)
          Get the plan for verbalizing the type itself.
 boolean hasPlan()
           
 boolean isProper()
           
 void setDiscreteness(PropDiscreteness discreteness)
          If this prop represents a continuous substances, such as water, specify so here.
 void setGender(CharacterGender gender)
          If this noun should always be expressed as a certain gender, indicate so here
 void setGiven(java.lang.Boolean given)
          If this noun should always be expressed as given, or always as new, indicate so here
 void setPlan(DiscourseExecutable plan, NounPlurality plurality)
           
 void setTypePlan(DiscourseExecutable plan, NounPlurality plurality)
          Set the plan for verbalizing the type itself.
 
Methods inherited from class story.scheherazade.verbalizer.SymbolPlanner
getAssumedAgentArg, getMenuName, getPlan, getPrompt, hasMenuName, hasPlan, hasPrompt, isRaising, setAssumedAgentArg, setMenuName, setPlan, setPostroll, setPreroll, setPrompt, setsAssumedAgent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDARD_DISCRETE_UNGENDERED

public static final NounPlanner STANDARD_DISCRETE_UNGENDERED

STANDARD_CONTINUOUS_UNGENDERED

public static final NounPlanner STANDARD_CONTINUOUS_UNGENDERED

STANDARD_DISCRETE_MALE

public static final NounPlanner STANDARD_DISCRETE_MALE

STANDARD_CONTINUOUS_MALE

public static final NounPlanner STANDARD_CONTINUOUS_MALE

STANDARD_DISCRETE_FEMALE

public static final NounPlanner STANDARD_DISCRETE_FEMALE

STANDARD_CONTINUOUS_FEMALE

public static final NounPlanner STANDARD_CONTINUOUS_FEMALE
Constructor Detail

NounPlanner

public NounPlanner(NounType type,
                   boolean proper)
            throws Scheherexception
Throws:
Scheherexception
Method Detail

setTypePlan

public void setTypePlan(DiscourseExecutable plan,
                        NounPlurality plurality)
                 throws Scheherexception
Set the plan for verbalizing the type itself.

Throws:
Scheherexception

getTypePlan

public DiscourseExecutable getTypePlan(NounPlurality plurality)
                                throws Scheherexception
Get the plan for verbalizing the type itself. If this is not specified in setTypePlan(), the menu name is returned as the default for singular.

Throws:
Scheherexception

getStandardTypePlan

public static DiscourseExecutable getStandardTypePlan(NounType type,
                                                      NounPlurality plurality)
                                               throws Scheherexception
Throws:
Scheherexception

setGiven

public void setGiven(java.lang.Boolean given)
              throws Scheherexception
If this noun should always be expressed as given, or always as new, indicate so here

Throws:
Scheherexception

getGiven

public java.lang.Boolean getGiven()
Return the always-given or always-new bit, possibly null if it has not been set.


setGender

public void setGender(CharacterGender gender)
               throws Scheherexception
If this noun should always be expressed as a certain gender, indicate so here

Throws:
Scheherexception

getGender

public CharacterGender getGender()
Return the default gender, possibly null if it has not been set.


setDiscreteness

public void setDiscreteness(PropDiscreteness discreteness)
                     throws Scheherexception
If this prop represents a continuous substances, such as water, specify so here. The default is to be discrete.

Throws:
Scheherexception

getDiscreteness

public PropDiscreteness getDiscreteness()

setPlan

public void setPlan(DiscourseExecutable plan,
                    NounPlurality plurality)
             throws Scheherexception
Throws:
Scheherexception

getPlan

public DiscourseExecutable getPlan(NounPlurality plurality)
                            throws Scheherexception
Throws:
Scheherexception

getType

public NounType getType()

hasPlan

public boolean hasPlan()

isProper

public boolean isProper()


Copyright © 2011 David K. Elson. All Rights Reserved.