|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.semaine.components.dialogue.actionproposers.ContextTemplate
public class ContextTemplate
This class serves as a container for conversation model elements. It includes a response and a list of all required and all optional features that are linked to this response.
Field Summary | |
---|---|
static int |
ABOUT_CURRENT_CHARACTER
|
static int |
ABOUT_OTHER_CHARACTER
|
static int |
ABOUT_OTHER_PEOPLE
|
static int |
ABOUT_OWN_FEELINGS
|
static int |
AGREE
|
static int |
ANGRY
|
static int |
DISAGREE
|
static int |
FUTURE_ACTION
|
static int |
FUTURE_EVENT
|
static int |
HAPPY
|
static int |
LAUGH
|
static int |
NEGATIVE
|
static int |
OBADIAH
|
static int |
PAST_ACTION
|
static int |
PAST_EVENT
|
static int |
POPPY
|
static int |
POSITIVE
|
static int |
PRAGMATIC
|
static int |
PRUDENCE
|
static int |
SAD
|
static int |
SPIKE
|
static int |
TALK_ABOUT_SELF
|
Constructor Summary | |
---|---|
ContextTemplate(java.lang.String reaction)
Creates a new ContextTemplate with the given reaction |
Method Summary | |
---|---|
void |
addExtraFeature(int feature)
Adds an optional feature to this template |
void |
addRequiredFeature(int feature)
Adds a required feature to this template |
boolean |
equals(ContextTemplate template)
Overrides the Object-equals method to compare to ContextTemplates with each other |
java.lang.String |
feature2String(java.lang.Integer i)
Returns a String representation of the given feature-integer |
java.util.ArrayList<java.lang.Integer> |
getExtraFeatures()
|
java.lang.String |
getReaction()
|
java.util.ArrayList<java.lang.Integer> |
getRequiredFeatures()
|
void |
setNewReaction(java.lang.String reaction)
Sets a new response |
java.lang.String |
toString()
Creates a String representation of this template |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int POPPY
public static final int OBADIAH
public static final int PRUDENCE
public static final int SPIKE
public static final int HAPPY
public static final int SAD
public static final int ANGRY
public static final int POSITIVE
public static final int NEGATIVE
public static final int AGREE
public static final int DISAGREE
public static final int ABOUT_OTHER_PEOPLE
public static final int ABOUT_OTHER_CHARACTER
public static final int ABOUT_CURRENT_CHARACTER
public static final int ABOUT_OWN_FEELINGS
public static final int PRAGMATIC
public static final int TALK_ABOUT_SELF
public static final int PAST_EVENT
public static final int FUTURE_EVENT
public static final int PAST_ACTION
public static final int FUTURE_ACTION
public static final int LAUGH
Constructor Detail |
---|
public ContextTemplate(java.lang.String reaction)
reaction
- Method Detail |
---|
public void addRequiredFeature(int feature)
feature
- public void addExtraFeature(int feature)
feature
- public java.lang.String getReaction()
public java.util.ArrayList<java.lang.Integer> getRequiredFeatures()
public java.util.ArrayList<java.lang.Integer> getExtraFeatures()
public void setNewReaction(java.lang.String reaction)
reaction
- public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(ContextTemplate template)
template
-
public java.lang.String feature2String(java.lang.Integer i)
i
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |