|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjchrest.architecture.Emotion
public class Emotion
Represents emotions as vectors of basic emotions
Nested Class Summary | |
---|---|
static class |
Emotion.EkmanBasicEmotion
Basic emotions according to (Ekman, 1999). |
static class |
Emotion.EmotionTheory
Simple enumeration class to denote the available theories on emotions. |
static class |
Emotion.PlutchikBasicEmotion
Basic emotions according to (Plutchik, 1991). |
Constructor Summary | |
---|---|
Emotion(jchrest.architecture.Emotion.BasicEmotion basicemotion,
double strength)
construct an emotion based on one singe basic emotion |
|
Emotion(Emotion.EmotionTheory theory)
|
Method Summary | |
---|---|
static Emotion |
add(Emotion e1,
Emotion e2)
|
java.lang.String |
biohazSym()
|
static Emotion |
clone(Emotion original)
|
java.lang.String |
display()
|
java.lang.String |
displayNONUTF()
|
java.lang.String |
downSym()
|
java.lang.String |
flowerSym()
|
java.lang.String |
frowneySym()
|
static Emotion.EmotionTheory[] |
getAllEmotionTheories()
retrieve all available emotion theories |
static Emotion.PlutchikBasicEmotion[] |
getAllPlutchikBasicEmotions()
|
double |
getComponentValue(jchrest.architecture.Emotion.BasicEmotion basicemotion)
indicate the percentage of one basic emotion within an emotion instance |
Emotion.EmotionTheory |
getTheory()
|
java.lang.String |
heartSym()
|
static jchrest.architecture.Emotion.BasicEmotion[] |
listEmotions(Emotion.EmotionTheory theory)
list all basic emotions, regardless from which theory |
static Emotion[] |
listPureEmotions(Emotion.EmotionTheory theory,
float strength)
construct all available emotions that consist of one basic emotion each from the selected emotional theory |
void |
multiply(float factor)
|
static double |
offsetEmotion(Emotion.PlutchikBasicEmotion e1,
Emotion.PlutchikBasicEmotion e2,
double v1,
double v2)
calculate the difference between two basic emotions in Plutchik's theory |
static Emotion.PlutchikBasicEmotion |
PlutchikInverseBasicEmotion(Emotion.PlutchikBasicEmotion basic_emotion)
indicate the basic emotion of opposite polarity (according to (Plutchik, 1991)) |
java.lang.Double |
project(Emotion pureemotion)
assuming that the argument is an emotion consisting of only one basic emotion, returns the object's value for that particular basic emotion |
void |
putComponentValue(jchrest.architecture.Emotion.BasicEmotion basicemotion,
double strength)
|
void |
setStrength()
|
java.lang.String |
skullSym()
|
java.lang.String |
smileySym()
|
java.lang.String |
voltageSym()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Emotion(Emotion.EmotionTheory theory)
public Emotion(jchrest.architecture.Emotion.BasicEmotion basicemotion, double strength)
Method Detail |
---|
public static Emotion.EmotionTheory[] getAllEmotionTheories()
public static Emotion.PlutchikBasicEmotion[] getAllPlutchikBasicEmotions()
public static jchrest.architecture.Emotion.BasicEmotion[] listEmotions(Emotion.EmotionTheory theory)
public static Emotion.PlutchikBasicEmotion PlutchikInverseBasicEmotion(Emotion.PlutchikBasicEmotion basic_emotion)
public static double offsetEmotion(Emotion.PlutchikBasicEmotion e1, Emotion.PlutchikBasicEmotion e2, double v1, double v2)
public Emotion.EmotionTheory getTheory()
public void setStrength()
public static Emotion[] listPureEmotions(Emotion.EmotionTheory theory, float strength)
public double getComponentValue(jchrest.architecture.Emotion.BasicEmotion basicemotion)
public void putComponentValue(jchrest.architecture.Emotion.BasicEmotion basicemotion, double strength)
public java.lang.Double project(Emotion pureemotion)
public java.lang.String heartSym()
public java.lang.String skullSym()
public java.lang.String smileySym()
public java.lang.String frowneySym()
public java.lang.String flowerSym()
public java.lang.String voltageSym()
public java.lang.String biohazSym()
public java.lang.String downSym()
public java.lang.String display()
public java.lang.String displayNONUTF()
public static Emotion clone(Emotion original)
public void multiply(float factor)
public static Emotion add(Emotion e1, Emotion e2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |