Package jadex.bdiv3.examples.university
Class UniversityAgent
- java.lang.Object
-
- jadex.bdiv3.examples.university.UniversityAgent
-
public class UniversityAgent extends java.lang.ObjectGo to university example taken from Winikoff, Padgham: developing intelligent agent systems, 2004.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classUniversityAgent.ComeToUniGoalThe top-level goal to come to the university.protected static classUniversityAgent.TakeXGoalThe take x goal is for using a train or tram.protected classUniversityAgent.TrainPlanThe train plan for the come to university goal.protected classUniversityAgent.WalkPlanThe walk plan for the come to university goal.
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccessagentprotected booleanrainingBelief if it is currently raining.
-
Constructor Summary
Constructors Constructor Description UniversityAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()The agent body is executed on startup.protected voidtakeX(UniversityAgent.TakeXGoal goal)Take X plan for the take X goal.protected voidtramPlan(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.
-
-