public class CleanerBDI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
CleanerBDI.AchieveCleanup
Achieve cleanup goals are created for every piece
of waste the agent notices.
|
class |
CleanerBDI.AchieveDropWaste |
class |
CleanerBDI.AchieveMoveTo
The goal is used to move to a specific location.
|
class |
CleanerBDI.AchievePickupWaste
Goal for picking up a piece of waste.
|
class |
CleanerBDI.DropWasteAction |
class |
CleanerBDI.GetVisionAction |
class |
CleanerBDI.MaintainBatteryLoaded
Goal for keeping the battery loaded.
|
class |
CleanerBDI.PerformLookForWaste
Goal that lets the cleaner look for waste.
|
class |
CleanerBDI.PerformMemorizePositions |
class |
CleanerBDI.PerformPatrol
Goal that lets the agent perform patrol rounds.
|
class |
CleanerBDI.PickupWasteAction |
class |
CleanerBDI.QueryChargingStation |
class |
CleanerBDI.QueryWastebin |
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The bdi agent.
|
protected Waste |
carriedwaste
The carried waste (or null).
|
protected java.util.Set<Chargingstation> |
chargingstations
The known set of chargingstation.
|
protected java.util.Set<Cleaner> |
cleaners
The known set of other cleaners.
|
protected boolean |
daytime
The flag if it is daytime or night.
|
protected IEnvironment |
environment
The virtual environment of the cleaner.
|
protected double |
my_chargestate
The chargestate.
|
protected Location |
my_location
The location of the cleaner.
|
protected double |
my_speed
The speed of the cleaner.
|
protected double |
my_vision
The vision.
|
protected java.util.List<Location> |
patrolpoints
The patrol points.
|
protected jadex.commons.Tuple2<java.lang.Integer,java.lang.Integer> |
raster
The raster for memorizing positions.
|
protected java.util.Set<MapPoint> |
visited_positions
The visited positions.
|
protected java.util.Set<Wastebin> |
wastebins
The known set of wastebins.
|
protected java.util.Set<Waste> |
wastes
The set of wastes.
|
Constructor and Description |
---|
CleanerBDI() |
Modifier and Type | Method and Description |
---|---|
void |
body()
The agent body.
|
jadex.bridge.IInternalAccess |
getAgent()
Get the agent.
|
Waste |
getCarriedWaste()
Get the carriedwaste.
|
java.util.Set<Chargingstation> |
getChargingStations()
Get the chargingstations.
|
java.util.Set<Cleaner> |
getCleaners()
Get the cleaners.
|
IEnvironment |
getEnvironment()
Get the environment.
|
protected java.util.List<LocationObject> |
getInVisionObjects() |
protected java.util.List<MapPoint> |
getMaxQuantity() |
double |
getMyChargestate()
Get the my_chargestate.
|
Location |
getMyLocation()
Get the my_location.
|
double |
getMySpeed()
Get the my_speed.
|
double |
getMyVision()
Get the my_vision.
|
java.util.List<Location> |
getPatrolPoints()
Get the patrolpoints.
|
jadex.commons.Tuple2<java.lang.Integer,java.lang.Integer> |
getRaster()
Get the raster.
|
java.util.Set<MapPoint> |
getVisitedPositions()
Get the visited_positions.
|
java.util.Set<Wastebin> |
getWastebins()
Get the wastebins.
|
java.util.Set<Waste> |
getWastes()
Get the wastes.
|
boolean |
isDaytime()
Get the daytime.
|
void |
setCarriedwaste(Waste carriedwaste)
Set the carriedwaste.
|
void |
setDaytime(boolean daytime)
Set the daytime.
|
void |
setMyChargestate(double mychargestate)
Set the my_chargestate.
|
void |
setMyLocation(Location mylocation)
Set the my_location.
|
protected jadex.commons.future.IFuture<java.lang.Void> |
updateVision(jadex.bdiv3.runtime.IPlan rplan) |
protected jadex.bridge.IInternalAccess agent
protected IEnvironment environment
protected java.util.Set<Waste> wastes
protected java.util.Set<Wastebin> wastebins
protected java.util.Set<Chargingstation> chargingstations
protected java.util.Set<Cleaner> cleaners
protected jadex.commons.Tuple2<java.lang.Integer,java.lang.Integer> raster
protected java.util.Set<MapPoint> visited_positions
protected boolean daytime
protected Location my_location
protected double my_speed
protected double my_vision
protected double my_chargestate
protected Waste carriedwaste
protected java.util.List<Location> patrolpoints
protected jadex.commons.future.IFuture<java.lang.Void> updateVision(jadex.bdiv3.runtime.IPlan rplan)
protected java.util.List<LocationObject> getInVisionObjects()
public void body()
public IEnvironment getEnvironment()
public java.util.Set<Waste> getWastes()
public java.util.Set<Wastebin> getWastebins()
public java.util.Set<Chargingstation> getChargingStations()
public java.util.Set<Cleaner> getCleaners()
public jadex.commons.Tuple2<java.lang.Integer,java.lang.Integer> getRaster()
public java.util.Set<MapPoint> getVisitedPositions()
public boolean isDaytime()
public void setDaytime(boolean daytime)
daytime
- The daytime to set.public Location getMyLocation()
public void setMyLocation(Location mylocation)
my_location
- The my_location to set.public double getMySpeed()
public double getMyVision()
public double getMyChargestate()
public void setMyChargestate(double mychargestate)
my_chargestate
- The my_chargestate to set.public Waste getCarriedWaste()
public void setCarriedwaste(Waste carriedwaste)
carriedwaste
- The carriedwaste to set.public java.util.List<Location> getPatrolPoints()
public jadex.bridge.IInternalAccess getAgent()
protected java.util.List<MapPoint> getMaxQuantity()