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 SummaryFields Modifier and Type Field Description protected ISpaceObjectdisasterThe disaster.protected IGoalrgoal
 - 
Constructor SummaryConstructors Constructor Description HandleDisaster(ISpaceObject disaster)Create a new HandleDisaster.
 - 
Method SummaryAll 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- 
disasterprotected ISpaceObject disaster The disaster.
 - 
rgoalprotected IGoal rgoal 
 
- 
 - 
Constructor Detail- 
HandleDisasterpublic HandleDisaster(ISpaceObject disaster) Create a new HandleDisaster.
 
- 
 - 
Method Detail- 
checkTargetpublic boolean checkTarget() 
 - 
inhibitHandlerDisasterprotected boolean inhibitHandlerDisaster(CommanderAgent.HandleDisaster other) 
 - 
getDisasterpublic ISpaceObject getDisaster() Get the disaster.- Returns:
- The disaster.
 
 - 
hashCodepublic int hashCode() Get the hashcode.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test if equal to other goal.- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- obj- The other object.
- Returns:
- True, if equal.
 
 - 
finishedprotected void finished() Called when goal is finished.
 
- 
 
-