org.pandora.emotion
Enum EmotionalState

java.lang.Object
  extended by java.lang.Enum<EmotionalState>
      extended by org.pandora.emotion.EmotionalState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EmotionalState>

public enum EmotionalState
extends java.lang.Enum<EmotionalState>

A convenience enum of different emotional states.


Enum Constant Summary
AFRAID
           
ANGER
           
BORED
           
CALM
           
CONFIDENT
           
DEPRESSED
           
DISLIKE
           
ECSTATIC
           
HAPPY
           
HATE
           
LAUGHTER
           
LIKE
           
LOVE
           
NONE
           
PANIC
           
RAGE
           
SAD
           
SERIOUS
           
SURPRISE
           
 
Method Summary
 void apply(Vertex vertex)
          Apply the emotion to the vertex.
static EmotionalState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EmotionalState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final EmotionalState NONE

LOVE

public static final EmotionalState LOVE

LIKE

public static final EmotionalState LIKE

DISLIKE

public static final EmotionalState DISLIKE

HATE

public static final EmotionalState HATE

RAGE

public static final EmotionalState RAGE

ANGER

public static final EmotionalState ANGER

CALM

public static final EmotionalState CALM

ECSTATIC

public static final EmotionalState ECSTATIC

HAPPY

public static final EmotionalState HAPPY

SAD

public static final EmotionalState SAD

DEPRESSED

public static final EmotionalState DEPRESSED

PANIC

public static final EmotionalState PANIC

AFRAID

public static final EmotionalState AFRAID

CONFIDENT

public static final EmotionalState CONFIDENT

SURPRISE

public static final EmotionalState SURPRISE

BORED

public static final EmotionalState BORED

LAUGHTER

public static final EmotionalState LAUGHTER

SERIOUS

public static final EmotionalState SERIOUS
Method Detail

values

public static EmotionalState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EmotionalState c : EmotionalState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EmotionalState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

apply

public void apply(Vertex vertex)
Apply the emotion to the vertex. Associate to the relevant emotion.