Package jadex.bdiv3.examples.university
Class UniversityAgent
- java.lang.Object
-
- jadex.bdiv3.examples.university.UniversityAgent
-
public class UniversityAgent extends java.lang.Object
Go to university example taken from Winikoff, Padgham: developing intelligent agent systems, 2004.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
UniversityAgent.ComeToUniGoal
The top-level goal to come to the university.protected static class
UniversityAgent.TakeXGoal
The take x goal is for using a train or tram.protected class
UniversityAgent.TrainPlan
The train plan for the come to university goal.protected class
UniversityAgent.WalkPlan
The walk plan for the come to university goal.
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
protected boolean
raining
Belief if it is currently raining.
-
Constructor Summary
Constructors Constructor Description UniversityAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
body()
The agent body is executed on startup.protected void
takeX(UniversityAgent.TakeXGoal goal)
Take X plan for the take X goal.protected void
tramPlan(IPlan plan)
The tram plan for come to university goal.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
-
raining
protected boolean raining
Belief if it is currently raining. Set through an agent argument.
-
-
Method Detail
-
body
public void body()
The agent body is executed on startup. It creates and dispatches a come to university goal.
-
tramPlan
protected void tramPlan(IPlan plan)
The tram plan for come to university goal. Tram is always a good idea.
-
takeX
protected void takeX(UniversityAgent.TakeXGoal goal)
Take X plan for the take X goal.
-
-