|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalmabasedmodel.AEmotion
public class AEmotion
This class is used to store ALMA emotions outside ALMA. Implements serializable, because it is logged!
| Field Summary | |
|---|---|
private java.lang.String |
elicitor
Elicitor of the emotion - who have caused this emotion to be felt? |
private int |
elicitorId
If elicitor is an agent, his id will be here, -1 otherwise |
private java.lang.Double |
intensity
Intensity of the emotion, ranges from 0 to 1 |
private de.affect.emotion.EmotionType |
type
Type of the emotion - EmotionType defined in ALMA |
| Constructor Summary | |
|---|---|
AEmotion(de.affect.emotion.EmotionType type,
double intensity,
java.lang.String elicitor,
int id)
Constructor for this class. |
|
| Method Summary | |
|---|---|
java.lang.String |
getElicitor()
Gets emotion elicitor - the cause of the emotion. |
int |
getElicitorId()
If elicitor is an agent, his id can be got by this method. |
double |
getIntensity()
Gets emotion intensity. |
de.affect.emotion.EmotionType |
getType()
Gets emotion type. |
void |
setElicitor(java.lang.String newElicitor)
Sets the elicitor - the emotion cause - for the emotion. |
void |
setElicitorId(int newId)
Sets elicitor id. |
void |
setIntensity(double newInt)
Sets the intensity of the emotion. |
void |
setType(de.affect.emotion.EmotionType newType)
Sets type of the emotion. |
java.lang.String |
toString()
toString method define the way we want our object to be printed in the console, and/or transfered to String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private de.affect.emotion.EmotionType type
private java.lang.Double intensity
private java.lang.String elicitor
private int elicitorId
| Constructor Detail |
|---|
public AEmotion(de.affect.emotion.EmotionType type,
double intensity,
java.lang.String elicitor,
int id)
type - type of the emotionintensity - intensity of the emotionelicitor - elicitor of the emotionid - elicitor id - if it is an agent| Method Detail |
|---|
public de.affect.emotion.EmotionType getType()
public double getIntensity()
public java.lang.String getElicitor()
public int getElicitorId()
public void setType(de.affect.emotion.EmotionType newType)
newType - emotion typepublic void setIntensity(double newInt)
newInt - new intensitypublic void setElicitor(java.lang.String newElicitor)
newElicitor - new elicitorpublic void setElicitorId(int newId)
newId - new id.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||