Package jadex.bdiv3.examples.joke
Class JokeAgent
- java.lang.Object
-
- jadex.bdiv3.examples.joke.JokeAgent
-
public class JokeAgent extends java.lang.Object
Tries to achieve a state of mood of a user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
JokeAgent.AchieveMoodGoal
Goal to achieve a certain state of mood.class
JokeAgent.AntiAngryPlan
Plan to achieve a mood transfer.static class
JokeAgent.Mood
class
JokeAgent.MoodGui
Gui to show the user mood and jokes.class
JokeAgent.OnlineSelectPlan
Plan to achieve a mood transfer.class
JokeAgent.RandomSelectPlan
Plan to achieve a mood transfer.
-
Field Summary
Fields Modifier and Type Field Description protected IBDIAgentFeature
bdi
protected JokeAgent.MoodGui
gui
The gui.protected java.util.List<java.lang.String>
slogans
The available slogans.protected JokeAgent.Mood
usermood
The perceived users mood.
-
Constructor Summary
Constructors Constructor Description JokeAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adaptMoodGui()
void
body()
JokeAgent.Mood
getUserMood()
Get the usermood.void
init()
void
printNewSlogan(ChangeInfo<java.lang.String> ci)
void
setUserMood(JokeAgent.Mood usermood)
Set the usermood.
-
-
-
Field Detail
-
bdi
protected IBDIAgentFeature bdi
-
usermood
protected JokeAgent.Mood usermood
The perceived users mood.
-
gui
protected JokeAgent.MoodGui gui
The gui.
-
slogans
protected java.util.List<java.lang.String> slogans
The available slogans.
-
-
Method Detail
-
init
public void init()
-
body
public void body()
-
getUserMood
public JokeAgent.Mood getUserMood()
Get the usermood.- Returns:
- The usermood
-
setUserMood
public void setUserMood(JokeAgent.Mood usermood)
Set the usermood.- Parameters:
usermood
- The usermood to set
-
printNewSlogan
public void printNewSlogan(ChangeInfo<java.lang.String> ci)
-
adaptMoodGui
public void adaptMoodGui()
-
-