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