Class FireBrigadeAgent.ClearChemicals
- java.lang.Object
-
- jadex.bdiv3.examples.disastermanagement.firebrigade.FireBrigadeAgent.ClearChemicals
-
- Enclosing class:
- FireBrigadeAgent
public class FireBrigadeAgent.ClearChemicals extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ISpaceObjectdisasterThe disaster.
-
Constructor Summary
Constructors Constructor Description ClearChemicals(ISpaceObject disaster)Create a new ExtinguishFire.ClearChemicals(java.lang.Object disasterid)Create a new ExtinguishFire.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckDrop(FireBrigadeAgent ag, IGoal goal)Drop if this goal is only option and there are others.booleancheckTarget()ISpaceObjectgetDisaster()Get the disaster.
-
-
-
Field Detail
-
disaster
protected ISpaceObject disaster
The disaster.
-
-
Constructor Detail
-
ClearChemicals
public ClearChemicals(ISpaceObject disaster)
Create a new ExtinguishFire.
-
ClearChemicals
public ClearChemicals(java.lang.Object disasterid)
Create a new ExtinguishFire.
-
-
Method Detail
-
checkTarget
public boolean checkTarget()
-
checkDrop
public boolean checkDrop(FireBrigadeAgent ag, IGoal goal)
Drop if this goal is only option and there are others.
-
getDisaster
public ISpaceObject getDisaster()
Get the disaster.- Returns:
- The disaster.
-
-