Class CleanerAgent.AchieveDropWaste
- java.lang.Object
-
- jadex.bdiv3.examples.cleanerworld.cleaner.CleanerAgent.AchieveDropWaste
-
- Enclosing class:
- CleanerAgent
public class CleanerAgent.AchieveDropWaste extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AchieveDropWaste(Wastebin wastebin)
Create a new goal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkContext()
Drop the goal when the wastebin is full.Wastebin
getWastebin()
Get the wastebin.
-
-
-
Field Detail
-
wastebin
protected Wastebin wastebin
The wastebin.
-
-
Constructor Detail
-
AchieveDropWaste
public AchieveDropWaste(Wastebin wastebin)
Create a new goal.- Parameters:
wastebin
- The wastebin.
-
-
Method Detail
-
checkContext
public boolean checkContext()
Drop the goal when the wastebin is full.
-
getWastebin
public Wastebin getWastebin()
Get the wastebin.- Returns:
- The wastebin.
-
-