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