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 ISpaceObject
disaster
The disaster.protected IGoal
rgoal
-
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 boolean
checkTarget()
boolean
equals(java.lang.Object obj)
Test if equal to other goal.protected void
finished()
Called when goal is finished.ISpaceObject
getDisaster()
Get the disaster.int
hashCode()
Get the hashcode.protected boolean
inhibitHandlerDisaster(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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equal to other goal.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- The other object.- Returns:
- True, if equal.
-
finished
protected void finished()
Called when goal is finished.
-
-