public class MissionEditDataModel extends Object
Modifier and Type | Field and Description |
---|---|
Point2D |
lastRealtimeLocation |
int |
realtimeCommandIdx |
Point2D |
realtimeLocation |
boolean |
selected |
Constructor and Description |
---|
MissionEditDataModel(File xmlPath,
AUVWorkbenchConfig cfgAUV,
MultiMissionController multiMissionController)
Constructor for existing missions
|
MissionEditDataModel(int vehicleType,
AUVWorkbenchConfig cfgAUV,
MultiMissionController multiMissionController)
Constructor for new missions
|
Modifier and Type | Method and Description |
---|---|
void |
closeMission()
Do whatever dispose stuff needs doing.
|
AvclMission |
getAvclMission()
Since the mission is created here, provide a way to retrieve it.
|
List<JAXBElement<?>> |
getCommandList()
The mission icon list and 2D display will typically want this when
they've been informed that the data has changed.
|
List<AreaElementType> |
getConstraintAvoidAreas() |
RouteElementType |
getConstraintEgressRouting() |
RouteElementType |
getConstraintIngressRouting() |
List<AgendaGoalElementType> |
getGoalList() |
int |
getID() |
org.jdom.Document |
getJdomMissionDocument()
The MultiMissionController will call this XML view to check for the default 3D scene name
|
AbsoluteHorizontalPositionElementType |
getLaunchPosition() |
Color |
getMissionColor()
Retrieve the specified color for this mission
|
MissionExecutionAndDynamicsHandler |
getMissionExecutionAndDynamicsHandler() |
File |
getMissionFile()
Get the file which the user thinks he's dealing with.
|
MunitionAimPointElementType |
getMunitionAimPoint() |
MunitionLaunchPointElementType |
getMunitionLaunchPoint() |
AbsoluteHorizontalPositionElementType |
getRecoveryPosition() |
String[] |
getSupportedVehicleDisplayNames() |
String[] |
getSupportedVehicleTypes() |
File |
getTempMissionFile()
The raw text editor will typ do this after being informed that mission data has changed.
|
boolean |
isMissionDirty() |
void |
marshalTempMissionFile()
Marshal in memory mission XML to file
|
static Object |
missionIDfromString(String s) |
static String |
missionIDtoString(Object mid)
Stringify a mission ID
|
void |
saveMission()
On loaded-from-disk missions, the MultiMissionController will come here.
|
void |
saveMission(File xmlPath)
The MultiMissionController will come here when the mission is being closed or saved.
|
void |
setAgendaElementSelected(int indexNum,
boolean tf) |
void |
setAllAgendaElementsSelected(boolean tf) |
void |
setMissionDirty(boolean dirty) |
void |
setMissionFile(File f)
Called after a save-as.
|
void |
setSupportedVehicleDisplayNames(String[] sa) |
void |
setSupportedVehicleTypes(String[] sa) |
public Point2D lastRealtimeLocation
public Point2D realtimeLocation
public int realtimeCommandIdx
public boolean selected
public MissionEditDataModel(File xmlPath, AUVWorkbenchConfig cfgAUV, MultiMissionController multiMissionController)
xmlPath
- path to the XML mission filecfgAUV
- the workbench configuration handlermultiMissionController
- the workbench multi mission controllerpublic MissionEditDataModel(int vehicleType, AUVWorkbenchConfig cfgAUV, MultiMissionController multiMissionController)
vehicleType
- the type mission to create based on a vehicle typecfgAUV
- the workbench configuration handlermultiMissionController
- the workbench multi mission controllerpublic void closeMission()
public Color getMissionColor()
public MissionExecutionAndDynamicsHandler getMissionExecutionAndDynamicsHandler()
public void marshalTempMissionFile()
public org.jdom.Document getJdomMissionDocument()
public File getTempMissionFile()
public File getMissionFile()
public void setMissionFile(File f)
f
- current mission file (mission tab name)public List<JAXBElement<?>> getCommandList()
public List<AgendaGoalElementType> getGoalList()
public List<AreaElementType> getConstraintAvoidAreas()
public RouteElementType getConstraintEgressRouting()
public RouteElementType getConstraintIngressRouting()
public AbsoluteHorizontalPositionElementType getLaunchPosition()
public AbsoluteHorizontalPositionElementType getRecoveryPosition()
public void setAllAgendaElementsSelected(boolean tf)
public void setAgendaElementSelected(int indexNum, boolean tf)
public MunitionAimPointElementType getMunitionAimPoint()
public MunitionLaunchPointElementType getMunitionLaunchPoint()
public AvclMission getAvclMission()
public void saveMission()
public void saveMission(File xmlPath)
xmlPath
- the mission file to savepublic String[] getSupportedVehicleTypes()
public void setSupportedVehicleTypes(String[] sa)
public String[] getSupportedVehicleDisplayNames()
public void setSupportedVehicleDisplayNames(String[] sa)
public boolean isMissionDirty()
public void setMissionDirty(boolean dirty)
public int getID()