Class TreasureHunterB1BDI
- java.lang.Object
-
- jadex.bdiv3.quickstart.treasureisland.TreasureHunterB1BDI
-
public class TreasureHunterB1BDI extends java.lang.Object
A treasure hunter that picks up the treasures one by one by creating a goal and thus a plan for each treasure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TreasureHunterB1BDI.CollectTreasureGoal
A goal to collect a given treasure.
-
Field Summary
Fields Modifier and Type Field Description protected TreasureHunterEnvironment
env
The treasure hunter world object.
-
Constructor Summary
Constructors Constructor Description TreasureHunterB1BDI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
body(IBDIAgentFeature agent)
Agent body is implemented as a loop that runs until no more treasures available.void
collectTreasurePlan(TreasureHunterB1BDI.CollectTreasureGoal goal)
A plan to collect a treasure.
-
-
-
Field Detail
-
env
protected TreasureHunterEnvironment env
The treasure hunter world object.
-
-
Method Detail
-
collectTreasurePlan
public void collectTreasurePlan(TreasureHunterB1BDI.CollectTreasureGoal goal)
A plan to collect a treasure.
-
body
public void body(IBDIAgentFeature agent)
Agent body is implemented as a loop that runs until no more treasures available.- Parameters:
agent
- The agent parameter is optional and allows to access bdi agent functionality.
-
-