Class CommanderAgent.HandleDisaster
- java.lang.Object
-
- jadex.bdiv3.examples.disastermanagement.commander.CommanderAgent.HandleDisaster
-
- Enclosing class:
- CommanderAgent
public class CommanderAgent.HandleDisaster extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ISpaceObjectdisasterThe disaster.protected IGoalrgoal
-
Constructor Summary
Constructors Constructor Description HandleDisaster(ISpaceObject disaster)Create a new HandleDisaster.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckTarget()booleanequals(java.lang.Object obj)Test if equal to other goal.protected voidfinished()Called when goal is finished.ISpaceObjectgetDisaster()Get the disaster.inthashCode()Get the hashcode.protected booleaninhibitHandlerDisaster(CommanderAgent.HandleDisaster other)
-
-
-
Field Detail
-
disaster
protected ISpaceObject disaster
The disaster.
-
rgoal
protected IGoal rgoal
-
-
Constructor Detail
-
HandleDisaster
public HandleDisaster(ISpaceObject disaster)
Create a new HandleDisaster.
-
-
Method Detail
-
checkTarget
public boolean checkTarget()
-
inhibitHandlerDisaster
protected boolean inhibitHandlerDisaster(CommanderAgent.HandleDisaster other)
-
getDisaster
public ISpaceObject getDisaster()
Get the disaster.- Returns:
- The disaster.
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equal to other goal.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- The other object.- Returns:
- True, if equal.
-
finished
protected void finished()
Called when goal is finished.
-
-