public class CleanerBDI.AchieveCleanup
extends java.lang.Object
| Constructor and Description |
|---|
AchieveCleanup(Waste waste)
Create a new goal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkContext()
Suspend the goal when night.
|
boolean |
checkDrop()
Drop the goal when waste is not seen
anymore and the agent agent does not carry it.
|
boolean |
checkTarget()
Check if the waste is contained
in a wastebin.
|
boolean |
equals(java.lang.Object obj)
Test if equal to other goal.
|
Waste |
getWaste()
Get the waste.
|
int |
hashCode()
Get the hashcode.
|
protected boolean |
inhibitAchieveCleanUp(CleanerBDI.AchieveCleanup other)
Inhibit other achieve cleanup goals that
are farer away from the cleaner.
|
java.lang.String |
toString()
Get the string representation.
|
protected Waste waste
public AchieveCleanup(Waste waste)
public boolean checkContext()
public boolean checkDrop()
public boolean checkTarget()
protected boolean inhibitAchieveCleanUp(CleanerBDI.AchieveCleanup other)
public Waste getWaste()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The other object.public java.lang.String toString()
toString in class java.lang.Object