Package loggerForms
Class FormsDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
loggerForms.FormsDataUnit
- All Implemented Interfaces:
Comparable
- Author:
- Graham Weatherup ID UTC UTCmillisecond PCLocalTime
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFormsDataUnit
(LoggerForm loggerForm, long timeMilliseconds, FormDescription formDescription, Object[] formData) Constructor for a form data unit. -
Method Summary
Modifier and TypeMethodDescriptionfindTimeValue
(PropertyTypes timeProperty) Find one of the time property controls and get its value.long
Object[]
This formData Array is based around the inputControlDescriptions ArrayList in formDescriptions.getOriginLatLong
(boolean recalculate) Get the latlong of the mean hydrophone position at the time of this detection.find a correctly set property value for the end time (if set).Return an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.long
void
setFormsData
(LoggerForm loggerForm, Object[] formData) used for updating data units(editing forms)Methods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getColourIndex, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getFrequency, getFrequencyOverlap, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeNanoseconds, getTimeOverlap, getUID, getUpdateCount, isEmbryonic, isForceAmpRecalc, linAmplitudeToDB, removeDataAnnotation, removeDataAnnotation, removeSuperDetection, setAbsBlockIndex, setCalculatedAmlitudeDB, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setDurationInMilliseconds, setEmbryonic, setForceAmpRecalc, setFrequency, setInfo, setLastUpdateTime, setLocalisation, setMeasuredAmpAndType, setMeasuredAmplitude, setMeasuredAmplitudeType, setNoiseBackground, setParentDataBlock, setSampleDuration, setSequenceBitmap, setSignalExcess, setSignalSPL, setSnapshotGeometry, setStartSample, setTimeDelaysSeconds, setTimeMilliseconds, setUID, setUniqueSuperDetection, sortOutputMaps, updateDataUnit
-
Field Details
-
currentXMLFormat
public static final int currentXMLFormat- See Also:
-
-
Constructor Details
-
FormsDataUnit
public FormsDataUnit(LoggerForm loggerForm, long timeMilliseconds, FormDescription formDescription, Object[] formData) Constructor for a form data unit.- Parameters:
loggerForm
-timeMilliseconds
-formDescription
-formData
-
-
-
Method Details
-
getFormData
This formData Array is based around the inputControlDescriptions ArrayList in formDescriptions. is is of same length and order matches- Returns:
- the formData
-
getLoggerForm
-
getFormDescription
- Returns:
- the formDescription
-
setFormsData
used for updating data units(editing forms) -
getOriginLatLong
Description copied from class:PamDataUnit
Get the latlong of the mean hydrophone position at the time of this detection. If the data unit has a channel bitmap of zero, then get the GPS position of the vessel at that time.- Overrides:
getOriginLatLong
in classPamDataUnit
- Returns:
- Lat long of detection origin (usually the position of the reference hydrophone at time of detection)
-
getTimeMilliseconds
public long getTimeMilliseconds()- Overrides:
getTimeMilliseconds
in classPamDataUnit
- Returns:
- The millisecond time of the data unit using the standard Java time system of milliseconds since midnight, January 1, 1970 UTC
-
findTimeValue
Find one of the time property controls and get its value.- Parameters:
timeProperty
-- Returns:
-
getSetEndTime
find a correctly set property value for the end time (if set).- Returns:
-
getEndTimeInMilliseconds
public long getEndTimeInMilliseconds()- Overrides:
getEndTimeInMilliseconds
in classPamDataUnit
-
getSummaryString
Description copied from class:PamDataUnit
Return an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.- Overrides:
getSummaryString
in classPamDataUnit
- Returns:
- summary string
-