Package jadex.bdi.university
Class UniversityAgent
java.lang.Object
jadex.bdi.university.UniversityAgent
Go to university example taken from
Winikoff, Padgham: developing intelligent agent systems, 2004.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
The top-level goal to come to the university.protected static class
The take x goal is for using a train or tram.protected class
The train plan for the come to university goal.protected class
The walk plan for the come to university goal. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
agent
protected jadex.core.IComponent agentThe bdi agent. -
raining
protected boolean rainingBelief if it is currently raining. Set through an agent argument. -
waiting
protected boolean waitingBelief if wait time is not too long. Set through an agent argument.
-
-
Constructor Details
-
UniversityAgent
public UniversityAgent()
-
-
Method Details
-
body
public void body()The agent body is executed on startup. It creates and dispatches a come to university goal. -
tramPlan
protected void tramPlan(jadex.bdi.runtime.IPlan plan) The tram plan for come to university goal. Tram is always a good idea. -
takeX
Take X plan for the take X goal.
-