story.scheherazade.verbalizer
Class VerbalizeDegree

java.lang.Object
  extended by story.scheherazade.verbalizer.VerbalizeDegree

public class VerbalizeDegree
extends java.lang.Object

Verbalize a degree of truth for a Condition.


Field Summary
static int EXTREMELY_THRESHOLD
           
static int NEUTRAL_THRESHOLD
           
static int SOMEWHAT_THRESHOLD
           
static int VERY_THRESHOLD
           
 
Constructor Summary
VerbalizeDegree()
           
 
Method Summary
static DegreeCategory getCategoryOfDegree(int degree)
           
static int getDegreeOfCategory(DegreeCategory category)
           
static java.lang.String getMenuName(DegreeCategory category)
           
static DiscourseCommand getModifier(int degree, ConditionGrammaticalType type)
           
static boolean getPolarity(int degree)
          Returns whether the condition is asserted to be essentially true or false.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOMEWHAT_THRESHOLD

public static final int SOMEWHAT_THRESHOLD
See Also:
Constant Field Values

NEUTRAL_THRESHOLD

public static final int NEUTRAL_THRESHOLD
See Also:
Constant Field Values

VERY_THRESHOLD

public static final int VERY_THRESHOLD
See Also:
Constant Field Values

EXTREMELY_THRESHOLD

public static final int EXTREMELY_THRESHOLD
See Also:
Constant Field Values
Constructor Detail

VerbalizeDegree

public VerbalizeDegree()
Method Detail

getPolarity

public static boolean getPolarity(int degree)
                           throws Scheherexception
Returns whether the condition is asserted to be essentially true or false.

Throws:
Scheherexception

getDegreeOfCategory

public static int getDegreeOfCategory(DegreeCategory category)
                               throws Scheherexception
Throws:
Scheherexception

getCategoryOfDegree

public static DegreeCategory getCategoryOfDegree(int degree)
                                          throws Scheherexception
Throws:
Scheherexception

getMenuName

public static java.lang.String getMenuName(DegreeCategory category)
                                    throws Scheherexception
Throws:
Scheherexception

getModifier

public static DiscourseCommand getModifier(int degree,
                                           ConditionGrammaticalType type)
                                    throws Scheherexception
Throws:
Scheherexception


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