jchrest.architecture
Class Emotion

java.lang.Object
  extended by jchrest.architecture.Emotion

public class Emotion
extends java.lang.Object

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

Emotion

public Emotion(Emotion.EmotionTheory theory)

Emotion

public Emotion(jchrest.architecture.Emotion.BasicEmotion basicemotion,
               double strength)
construct an emotion based on one singe basic emotion

Method Detail

getAllEmotionTheories

public static Emotion.EmotionTheory[] getAllEmotionTheories()
retrieve all available emotion theories


getAllPlutchikBasicEmotions

public static Emotion.PlutchikBasicEmotion[] getAllPlutchikBasicEmotions()

listEmotions

public static jchrest.architecture.Emotion.BasicEmotion[] listEmotions(Emotion.EmotionTheory theory)
list all basic emotions, regardless from which theory


PlutchikInverseBasicEmotion

public static Emotion.PlutchikBasicEmotion PlutchikInverseBasicEmotion(Emotion.PlutchikBasicEmotion basic_emotion)
indicate the basic emotion of opposite polarity (according to (Plutchik, 1991))


offsetEmotion

public static double offsetEmotion(Emotion.PlutchikBasicEmotion e1,
                                   Emotion.PlutchikBasicEmotion e2,
                                   double v1,
                                   double v2)
calculate the difference between two basic emotions in Plutchik's theory


getTheory

public Emotion.EmotionTheory getTheory()

setStrength

public void setStrength()

listPureEmotions

public static Emotion[] listPureEmotions(Emotion.EmotionTheory theory,
                                         float strength)
construct all available emotions that consist of one basic emotion each from the selected emotional theory


getComponentValue

public double getComponentValue(jchrest.architecture.Emotion.BasicEmotion basicemotion)
indicate the percentage of one basic emotion within an emotion instance


putComponentValue

public void putComponentValue(jchrest.architecture.Emotion.BasicEmotion basicemotion,
                              double strength)

project

public 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


heartSym

public java.lang.String heartSym()

skullSym

public java.lang.String skullSym()

smileySym

public java.lang.String smileySym()

frowneySym

public java.lang.String frowneySym()

flowerSym

public java.lang.String flowerSym()

voltageSym

public java.lang.String voltageSym()

biohazSym

public java.lang.String biohazSym()

downSym

public java.lang.String downSym()

display

public java.lang.String display()

displayNONUTF

public java.lang.String displayNONUTF()

clone

public static Emotion clone(Emotion original)

multiply

public void multiply(float factor)

add

public static Emotion add(Emotion e1,
                          Emotion e2)