Package alarm
Class AlarmDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
alarm.AlarmDataUnit
- All Implemented Interfaces:
Comparable
-
Constructor Summary
ConstructorDescriptionAlarmDataUnit
(long timeMilliseconds) Constructor for normal operation.AlarmDataUnit
(long timeMilliseconds, long[] firstStateTimes, long[] lastStateTimes, int highestStatus, double highestScore) constructor to use when reading back from databse -
Method Summary
Modifier and TypeMethodDescriptiondouble
int
long
String[]
long[]
double
int
long[]
long
boolean
isActive()
void
setActive
(boolean isActive) void
setAlarmStatus
(int alarmStatus, double score, long timeMillis) Sets the alarm state and records the start and end times for each of those states.void
setCurrentStatus
(int currentStatus) void
setExtraFieldData
(String[] extraFieldData) void
setHighestStatus
(int highestStatus) 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, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSummaryString, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeMilliseconds, 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
-
Constructor Details
-
AlarmDataUnit
public AlarmDataUnit(long timeMilliseconds) Constructor for normal operation.- Parameters:
timeMilliseconds
-
-
AlarmDataUnit
public AlarmDataUnit(long timeMilliseconds, long[] firstStateTimes, long[] lastStateTimes, int highestStatus, double highestScore) constructor to use when reading back from databse- Parameters:
timeMilliseconds
-firstStateTimes
-lastStateTimes
-highestStatus
-highestScore
-
-
-
Method Details
-
setAlarmStatus
public void setAlarmStatus(int alarmStatus, double score, long timeMillis) Sets the alarm state and records the start and end times for each of those states.- Parameters:
alarmStatus
- new statustimeMillis
- time milliseconds
-
getCurrentStatus
public int getCurrentStatus() -
setCurrentStatus
public void setCurrentStatus(int currentStatus) -
getHighestStatus
public int getHighestStatus() -
setHighestStatus
public void setHighestStatus(int highestStatus) -
getFirstStateTime
public long[] getFirstStateTime() -
getLastStateTime
public long[] getLastStateTime() -
getCurrentScore
public double getCurrentScore() -
getHighestScore
public double getHighestScore() -
getLastUpdate
public long getLastUpdate() -
isActive
public boolean isActive() -
setActive
public void setActive(boolean isActive) -
getExtraFieldData
- Returns:
- the extraFieldData
-
setExtraFieldData
- Parameters:
extraFieldData
- the extraFieldData to set
-
getEndTimeInMilliseconds
public long getEndTimeInMilliseconds()- Overrides:
getEndTimeInMilliseconds
in classPamDataUnit
-