|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BeastMood
public class BeastMood
A Beast's mood, defined as two parameters: grooviness and intensity. Emotions like happiness, joy, and pride have positive grooviness. Emotions like anger, frustration, and rage have negative grooviness. Emotions like rapture and rage have higher intensities than emotions like smugness and sullenness. Emotions like "hyper" and "deadpan" may vary in intensity but have zero grooviness. In human-computer interaction (HCI), we do use a scale like this to describe emotion, but the axes are generally called "valence" and intensity rather than grooviness and intensity.
Field Summary | |
---|---|
static double |
MAX_GROOVINESS
The maximum allowable grooviness. |
static double |
MAX_INTENSITY
The maximum allowable intensity. |
static double |
MIN_GROOVINESS
The minimum allowable grooviness. |
static double |
MIN_INTENSITY
The minimum allowable intensity. |
Constructor Summary | |
---|---|
BeastMood(double grooviness,
double intensity)
Construct a mood reflecting the given parameters. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
double |
getGrooviness()
Get the grooviness of this mood. |
double |
getIntensity()
Get the intensity of this mood. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double MAX_GROOVINESS
public static double MIN_GROOVINESS
public static double MAX_INTENSITY
public static double MIN_INTENSITY
Constructor Detail |
---|
public BeastMood(double grooviness, double intensity)
Note: the parameters will be clipped to the allowable ranges of grooviness and intensity.
grooviness
- the grooviness of the moodintensity
- the intensity of the moodMethod Detail |
---|
public double getGrooviness()
public double getIntensity()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |