public class RepositionPlanner extends GoalPlanner
GoalPlanner.PartnerList, GoalPlanner.PartnerRecord
Modifier and Type | Field and Description |
---|---|
static int |
ALERT |
static int |
TRANSIT |
alert, ATTACK_GOAL, avoidAreaSet, currentState, DECISION_CURRENT, DECISION_ONFAILURE, DECISION_ONSUCCESS, DECONTAMINATE_GOAL, DEMOLISH_GOAL, duration, firstGoal, GOAL_FAIL, GOAL_IN_PROGRESS, GOAL_SUCCEED, goalAttainable, goalVertical, goalVerticalMode, ILLUMINATE_GOAL, interVehicleCommunicationsHandler, JAM_GOAL, MARK_GOAL, MONITOR_TRANSMISSION_GOAL, onStation, operatingArea, PATROL_GOAL, planComputed, ready, RENDEZVOUS_GOAL, reportEnd, reportingInterval, reportPeriodic, reportStart, reportStatusChange, REPOSITION_GOAL, SAMPLE_ENVIRONMENT_GOAL, SEARCH_GOAL, searchPlannerType, startTime, stateChanged, STATUS_DESC_LAST_ENDED, STATUS_EXECUTION_BEGIN, STATUS_EXECUTION_FAIL, STATUS_EXECUTION_SUCCEED, STATUS_STATUS_COMPLETE, STATUS_SYSTEM_MISSION, stopTime, teamPartnerList, timeOut, vehicleCharacteristics, vehicleID, worldModel
Constructor and Description |
---|
RepositionPlanner(int vehicleID,
StateVector state,
VehicleCharacteristics chars,
AgendaGoalElementType goal)
Creates a new instance of RepositionPlanner
|
RepositionPlanner(int vehicleID,
StateVector state,
VehicleCharacteristics chars,
AgendaGoalElementType goal,
List<AreaElementType> avoidAreas)
Creates a new instance of RepositionPlanner
|
RepositionPlanner(int vehicleID,
StateVector state,
VehicleCharacteristics chars,
AgendaGoalElementType goal,
List<AreaElementType> avoidAreas,
double startX,
double startY)
Creates a new instance of RepositionPlanner
|
RepositionPlanner(int vehicleID,
VehicleCharacteristics chars,
AgendaGoalElementType goal)
Creates a new instance of RepositionPlanner
|
RepositionPlanner(int vehicleID,
VehicleCharacteristics chars,
AgendaGoalElementType goal,
List<AreaElementType> avoidAreas)
Creates a new instance of RepositionPlanner
|
RepositionPlanner(int vehicleID,
VehicleCharacteristics chars,
AgendaGoalElementType goal,
List<AreaElementType> avoidAreas,
double startX,
double startY)
Creates a new instance of RepositionPlanner
|
Modifier and Type | Method and Description |
---|---|
List<JAXBElement<?>> |
generateAvclScriptElementList(int vehicleType,
double gpsInterval)
Generates a set of AVCL commands corresponding to the transit to the operating area
and the goal accomplishment itself
|
List<JAXBElement<?>> |
generateAvclScriptElementList(List<JAXBElement<?>> planElementList,
int vehicleType,
double gpsInterval)
Generates a set of AVCL commands corresponding to the transit to the operating area
and the goal accomplishment itself
|
int |
goalExecutionStatus()
Determines the current status of goal execution (in progress, succeed, or fail
NOTE: Planner not fully implemented--this goal cannot succeed except as an alert
|
static void |
main(String[] args)
Main method for testing purposes only
|
void |
planScript()
Utilizes all available information to generate a script to accomplish the applicable goal
|
void |
planScript(double startX,
double startY)
Utilizes all available information to generate a script to accomplish the applicable goal
|
void |
reset()
Resets the planner so that it can be restarted from scratch
|
protected void |
sendRequiredComms()
Sends any required inter-vehicle communications based on the current goal status
|
protected void |
setParameters()
Sets the goal parameters specific to reposition based on a AVCL set alert goal
|
int |
setState()
Uses the current world state to set the state of a finite state machine that will
determine how the plan is generated (e.g. search pattern, report and continue, etc.)
|
assignVehicle, getAvoidAreas, getBestPosition, getCurrentTime, getDuration, getGoal, getPlannerType, getStartTime, getStopTime, getTimingType, getVehicleType, goalType, hasStateChanged, inOperatingArea, localExecutionLevel, makeLoiterCmd, makeMetaCmd, makePositionCmd, makeWaitCmd, makeWaitUntilTimeCmd, matchedWaypoints, planAvailable, planRouteElementList, recalculateGpsFixes, resetStateChanged, resetTiming, run, setAvoidAreas, setCommunicator, setFirst, setOffStation, setOnStation, setOperatingArea, setStartPosition, setStartPosition, setTeamMemberOnStation, setUnattainable, setWorldModel, vehicleInitialize
public static final int ALERT
public static final int TRANSIT
public RepositionPlanner(int vehicleID, VehicleCharacteristics chars, AgendaGoalElementType goal)
vehicleID
- chars
- characteristics that define what goals the vehicle is capable of accomplishinggoal
- AVCL (JAXB) object that defines the goal the planner is intended to accomplishpublic RepositionPlanner(int vehicleID, VehicleCharacteristics chars, AgendaGoalElementType goal, List<AreaElementType> avoidAreas)
vehicleID
- chars
- characteristics that define what goals the vehicle is capable of accomplishinggoal
- AVCL (JAXB) object that defines the goal the planner is intended to accomplishavoidAreas
- list of AVCL objects defining avoid areas effecting transit to and from op areapublic RepositionPlanner(int vehicleID, VehicleCharacteristics chars, AgendaGoalElementType goal, List<AreaElementType> avoidAreas, double startX, double startY)
vehicleID
- chars
- characteristics that define what goals the vehicle is capable of accomplishinggoal
- AVCL (JAXB) object that defines the goal the planner is intended to accomplishavoidAreas
- list of AVCL objects defining avoid areas effecting transit to and from op areastartX
- the x coordinate of the vehicle starting positionstartY
- the y coordinate of the vehicle starting positionpublic RepositionPlanner(int vehicleID, StateVector state, VehicleCharacteristics chars, AgendaGoalElementType goal)
vehicleID
- state
- StateVector object of the vehicle for which the planner is to be utilizedchars
- characteristics that define what goals the vehicle is capable of accomplishinggoal
- AVCL (JAXB) object that defines the goal the planner is intended to accomplishpublic RepositionPlanner(int vehicleID, StateVector state, VehicleCharacteristics chars, AgendaGoalElementType goal, List<AreaElementType> avoidAreas)
vehicleID
- state
- StateVector object of the vehicle for which the planner is to be utilizedchars
- characteristics that define what goals the vehicle is capable of accomplishinggoal
- AVCL (JAXB) object that defines the goal the planner is intended to accomplishavoidAreas
- list of AVCL objects defining avoid areas effecting transit to and from op areapublic RepositionPlanner(int vehicleID, StateVector state, VehicleCharacteristics chars, AgendaGoalElementType goal, List<AreaElementType> avoidAreas, double startX, double startY)
vehicleID
- state
- StateVector object of the vehicle for which the planner is to be utilizedchars
- characteristics that define what goals the vehicle is capable of accomplishinggoal
- AVCL (JAXB) object that defines the goal the planner is intended to accomplishavoidAreas
- list of AVCL objects defining avoid areas effecting transit to and from op areastartX
- the x coordinate of the vehicle starting positionstartY
- the y coordinate of the vehicle starting positionpublic void reset()
reset
in class GoalPlanner
protected void setParameters()
setParameters
in class GoalPlanner
public int setState()
setState
in class GoalPlanner
public void planScript(double startX, double startY)
planScript
in class GoalPlanner
startX
- X coordinate of the vehicle when starting work towards goal accomplishmentstartY
- Y coordinate of the vehicle when starting work towards goal accomplishmentpublic void planScript()
planScript
in class GoalPlanner
public List<JAXBElement<?>> generateAvclScriptElementList(List<JAXBElement<?>> planElementList, int vehicleType, double gpsInterval)
planElementList
- ArrayList containing an existing plan to which the generated one will be appendedvehicleType
- enumeration for the type of vehicle (AUV, UAV, etc.)gpsInterval
- distance the vehicle can travel between GPS fixes (only relevant for UUVs)public List<JAXBElement<?>> generateAvclScriptElementList(int vehicleType, double gpsInterval)
generateAvclScriptElementList
in class GoalPlanner
vehicleType
- enumeration for the type of vehicle (AUV, UAV, etc.)gpsInterval
- distance the vehicle can travel between GPS fixes (only relevant for UUVs)public int goalExecutionStatus()
goalExecutionStatus
in class GoalPlanner
protected void sendRequiredComms()
sendRequiredComms
in class GoalPlanner
public static void main(String[] args)
args
-