Package jadex.bdiv3.examples.joke
Class JokeAgent
- java.lang.Object
-
- jadex.bdiv3.examples.joke.JokeAgent
-
public class JokeAgent extends java.lang.ObjectTries to achieve a state of mood of a user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJokeAgent.AchieveMoodGoalGoal to achieve a certain state of mood.classJokeAgent.AntiAngryPlanPlan to achieve a mood transfer.static classJokeAgent.MoodclassJokeAgent.MoodGuiGui to show the user mood and jokes.classJokeAgent.OnlineSelectPlanPlan to achieve a mood transfer.classJokeAgent.RandomSelectPlanPlan to achieve a mood transfer.
-
Field Summary
Fields Modifier and Type Field Description protected IBDIAgentFeaturebdiprotected JokeAgent.MoodGuiguiThe gui.protected java.util.List<java.lang.String>slogansThe available slogans.protected JokeAgent.MoodusermoodThe perceived users mood.
-
Constructor Summary
Constructors Constructor Description JokeAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadaptMoodGui()voidbody()JokeAgent.MoodgetUserMood()Get the usermood.voidinit()voidprintNewSlogan(ChangeInfo<java.lang.String> ci)voidsetUserMood(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()
-
-