Class AmbulanceAgent.GoHome
- java.lang.Object
- 
- jadex.bdiv3.examples.disastermanagement.ambulance.AmbulanceAgent.GoHome
 
- 
- All Implemented Interfaces:
- IDestinationGoal
 - Enclosing class:
- AmbulanceAgent
 
 public static class AmbulanceAgent.GoHome extends java.lang.Object implements IDestinationGoal 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AmbulanceAgent.GoHomecheckCreate(AmbulanceAgent ag)Create a new Move.booleancheckDrop(AmbulanceAgent ag)Drop if there is another goal.IVector2getDestination()Get the destination.
 
- 
- 
- 
Field Detail- 
homeprotected IVector2 home The home position.
 
- 
 - 
Constructor Detail- 
GoHomepublic GoHome(IVector2 home) Create a new CarryOre.
 
- 
 - 
Method Detail- 
checkCreatepublic static AmbulanceAgent.GoHome checkCreate(AmbulanceAgent ag) Create a new Move.
 - 
checkDroppublic boolean checkDrop(AmbulanceAgent ag) Drop if there is another goal.
 - 
getDestinationpublic IVector2 getDestination() Get the destination.- Specified by:
- getDestinationin interface- IDestinationGoal
- Returns:
- The destination.
 
 
- 
 
-