public class TargetMotionControl extends PamControlledUnit implements PamSettings, DisplayLocaliserMenu
Modifier and Type | Field and Description |
---|---|
static int |
ALGORITHM_SELECTION_CHANGED
a selected algorithm has been changed.
|
static int |
CURRENT_DETECTIONS_CHANGED
used whenever the current detections selected by the user have been changed
|
static int |
DETECTION_INFO_CALC_END
Threadc calculating the target motion information has changed.
|
static int |
DETECTION_INFO_CALC_PROGRESS
Update panels with thread progress.
|
static int |
DETECTION_INFO_CALC_START
Started to calc the target motion information
|
static int |
HYDROPHONE_DATA_CHANGED
hydrophone or streamer positions have been changed.
|
static int |
LOCALISATION_DONE
The localiser is done
|
static int |
LOCALISATION_RESULTS_ADDED
new localisation results are present and need added
|
static int |
LOCALISATION_STARTED
used when the localiser has started
|
static int |
LOCALISATION_WAITING
The localiser is awaiting input form the user to save results,
|
static int |
RANGE_CHANGED
used whenever the map range is changed
|
Constructor and Description |
---|
TargetMotionControl(java.lang.String unitName) |
Modifier and Type | Method and Description |
---|---|
void |
addLocaliserMenuItem(javax.swing.JPopupMenu menu,
PamDetection selectedDetion) |
static java.util.ArrayList<java.util.ArrayList<GpsData>> |
calcStreamerPath(TargetMotionInformation tmInfo,
long millisStart,
long millisEnd,
TMManager.TMInfoWorker tmWorker)
Calculate the path of all streamers over the loaded GPS data.
|
java.util.ArrayList<java.util.ArrayList<GpsData>> |
calcStreamerPath(TMManager.TMInfoWorker tmWorker)
Calculate the path of all streamers over the loaded GPS data.
|
void |
calcTMDetectionInfo(java.util.ArrayList<PamDetection> currentDetections,
TargetMotionLocaliserProvider dataBlock)
Calculates the targetMotiojnInfo for a set of detections.
|
PamDataBlock |
getCurrentDataBlock() |
TargetMotionInformation |
getCurrentTMinfo() |
java.util.ArrayList<PamDataBlock> |
getDataBlocks() |
TMOfflineFunctions |
getOfflineFunctions() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
TMManager |
getTaregtMotionManager() |
TargetMotionDataBlock |
getTargetMotionDataBlock() |
TargetMotionLocaliser |
getTargetMotionLocaliser() |
TargetMotionMainPanel |
getTargetMotionMainPanel() |
TargetMotionSQLLogging |
getTargetMotionSQLLogging() |
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
save(boolean saveAll)
Save localisation data
|
void |
setCurrentTMinfo(TargetMotionInformation currentTMinfo) |
void |
setTaregtMotionManager(TMManager taregtMotionManager) |
void |
setTargetMotionDataBlock(TargetMotionDataBlock targetMotionDataBlock) |
TargetMotionSQLLogging |
setTargetMotionSQLLogging(TargetMotionSQLLogging targetMotionSQLLogging) |
void |
update(int flag)
Update tmControl
|
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, addXMLParameter, addXMLParameter, addXMLParameter, addXMLParameter, canClose, canPlayViewerSound, createDetectionMenu, createDisplayMenu, createFileMenu, createHelpMenu, fillXMLElement, flushDataBlockBuffers, getFrameNumber, getGuiFrame, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineTaskGroup, getPamController, getPamModuleInfo, getPamProcess, getPamView, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setupControlledUnit, stopViewerSound, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUnitName, getUnitType
public static final int CURRENT_DETECTIONS_CHANGED
public static final int LOCALISATION_STARTED
public static final int LOCALISATION_WAITING
public static final int LOCALISATION_DONE
public static final int LOCALISATION_RESULTS_ADDED
public static final int RANGE_CHANGED
public static final int ALGORITHM_SELECTION_CHANGED
public static final int HYDROPHONE_DATA_CHANGED
public static final int DETECTION_INFO_CALC_START
public static final int DETECTION_INFO_CALC_END
public static final int DETECTION_INFO_CALC_PROGRESS
public java.util.ArrayList<PamDataBlock> getDataBlocks()
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic void calcTMDetectionInfo(java.util.ArrayList<PamDetection> currentDetections, TargetMotionLocaliserProvider dataBlock)
public void update(int flag)
flag
- public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public PamDataBlock getCurrentDataBlock()
public TargetMotionLocaliser getTargetMotionLocaliser()
public TargetMotionMainPanel getTargetMotionMainPanel()
public void addLocaliserMenuItem(javax.swing.JPopupMenu menu, PamDetection selectedDetion)
addLocaliserMenuItem
in interface DisplayLocaliserMenu
public TMOfflineFunctions getOfflineFunctions()
public TargetMotionDataBlock getTargetMotionDataBlock()
public void setTargetMotionDataBlock(TargetMotionDataBlock targetMotionDataBlock)
public void save(boolean saveAll)
saveAll
- - save all localisation results if true. If false then save only the currently selected best result.public TargetMotionSQLLogging getTargetMotionSQLLogging()
public TargetMotionSQLLogging setTargetMotionSQLLogging(TargetMotionSQLLogging targetMotionSQLLogging)
public java.util.ArrayList<java.util.ArrayList<GpsData>> calcStreamerPath(TMManager.TMInfoWorker tmWorker)
tmWorker
- - the thread this function is carried out on. Can be nullpublic static java.util.ArrayList<java.util.ArrayList<GpsData>> calcStreamerPath(TargetMotionInformation tmInfo, long millisStart, long millisEnd, TMManager.TMInfoWorker tmWorker)
millisStart
- - calculate streamer path from millisStartmillisEnd
- - calculate streamer path up to millisEndtmWorker
- - the thread this function is carried out on. Can be null.public TargetMotionInformation getCurrentTMinfo()
public void setCurrentTMinfo(TargetMotionInformation currentTMinfo)
public TMManager getTaregtMotionManager()
public void setTaregtMotionManager(TMManager taregtMotionManager)