Class CleanerAgent.AchieveMoveTo
- java.lang.Object
-
- jadex.bdiv3.examples.cleanerworld.cleaner.CleanerAgent.AchieveMoveTo
-
- Enclosing class:
- CleanerAgent
public class CleanerAgent.AchieveMoveTo extends java.lang.Object
The goal is used to move to a specific location.
-
-
Constructor Summary
Constructors Constructor Description AchieveMoveTo(Location location)
Create a new goal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkTarget()
The goal is achieved when the position of the cleaner is near to the target position.Location
getLocation()
Get the location.
-
-
-
Field Detail
-
location
protected Location location
The location.
-
-
Constructor Detail
-
AchieveMoveTo
public AchieveMoveTo(Location location)
Create a new goal.- Parameters:
location
- The location.
-
-
Method Detail
-
checkTarget
public boolean checkTarget()
The goal is achieved when the position of the cleaner is near to the target position.
-
getLocation
public Location getLocation()
Get the location.- Returns:
- The location.
-
-