Constructor and Description |
---|
PractitionerAgent()
It creates a practitioner with all the feelings with the
zero value, for the ortogonal emotions.
|
Modifier and Type | Method and Description |
---|---|
double |
getFeeling(OrtogonalEmotion emotion)
It gets the current feeling about an emotion.
|
void |
live()
Method that performs in each simulation iteration
|
Emotion |
obtainPredominantEmotion()
It returns the predominan emotion considering all the emotions not
only the ortogonal emotions.
|
void |
setFeeling(OrtogonalEmotion emotion,
double feelingValue)
It sets the initial feeling about an emotion
|
java.lang.String |
toString()
Provides a string that represents the practitioner agent
|
public PractitionerAgent()
public void setFeeling(OrtogonalEmotion emotion, double feelingValue)
emotion
- The emotion that is established.feelingValue
- Value of the initial feeling.public double getFeeling(OrtogonalEmotion emotion)
emotion
- the emotionpublic Emotion obtainPredominantEmotion()
public java.lang.String toString()
toString
in class java.lang.Object