Package PamguardMVC.superdet
Class SubdetectionInfo<T extends PamDataUnit>
java.lang.Object
PamguardMVC.superdet.SubdetectionInfo<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Comparable<SubdetectionInfo<T>>
public class SubdetectionInfo<T extends PamDataUnit>
extends Object
implements Comparable<SubdetectionInfo<T>>
A list of these is held within a SuperDetection data unit. Ideally, a superDetection should always
have it's full list of these infos, so that it can handle questions about start and end times of
events, etc. However, references to the actual data units may be missing, if not in the current data load
period. That's fine, since all questions likely to be asked can come from the broad information.
- Author:
- Doug Gillespie
-
Constructor Summary
ConstructorDescriptionSubdetectionInfo
(PamSubtableData subTableData) Constructor used when reading back from database.SubdetectionInfo
(T subDetection, int parentID, long parentUID) SubdetectionInfo
(T subDetection, SuperDetection superDetection) Constructor used when adding a new data unit that isn't yet in the database. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(SubdetectionInfo detectionToCompareAgainst) Calls the PamDataUnit compareTo method on the passed SubdetectionInfo object's subdetectionint
int
long
long
int
long
void
setBinaryFileIndex
(int binaryFileIndex) void
setChildDatabaseIndex
(int childDatabaseIndex) void
setChildUID
(long childUID) void
setParentID
(int linkID) void
setParentUID
(long linkUID) void
setSubDetDataBlock
(PamDataBlock subDetDataBlock) void
setSubDetection
(T subDetection)
-
Constructor Details
-
SubdetectionInfo
- Parameters:
subDetection2
-
-
SubdetectionInfo
Constructor used when adding a new data unit that isn't yet in the database.- Parameters:
subDetection
-superDetection
-
-
SubdetectionInfo
Constructor used when reading back from database.- Parameters:
subTableData
- data object from database.
-
-
Method Details
-
getSubDetection
-
setSubDetection
-
getParentID
public int getParentID() -
setParentID
public void setParentID(int linkID) -
getParentUID
public long getParentUID() -
setParentUID
public void setParentUID(long linkUID) -
compareTo
Calls the PamDataUnit compareTo method on the passed SubdetectionInfo object's subdetection- Specified by:
compareTo
in interfaceComparable<T extends PamDataUnit>
- See Also:
-
getSubDetDataBlock
- Returns:
- the subDetDataBlock
-
setSubDetDataBlock
- Parameters:
subDetDataBlock
- the subDetDataBlock to set
-
getLongName
- Returns:
- the longName
-
getBinaryFilename
- Returns:
- the binaryFilename
-
getChildUID
public long getChildUID()- Returns:
- the childUID
-
getChildUTC
public long getChildUTC()- Returns:
- the childUTC
-
getChildDatabaseIndex
public int getChildDatabaseIndex()- Returns:
- the chileDatabaseIndex
-
setChildDatabaseIndex
public void setChildDatabaseIndex(int childDatabaseIndex) - Parameters:
childDatabaseIndex
- the chileDatabaseIndex to set
-
getBinaryFileIndex
public int getBinaryFileIndex()- Returns:
- the binaryFileIndex
-
setBinaryFileIndex
public void setBinaryFileIndex(int binaryFileIndex) - Parameters:
binaryFileIndex
- the binaryFileIndex to set
-
getClickNumber
- Returns:
- the clickNumber
-
setChildUID
public void setChildUID(long childUID) - Parameters:
childUID
- the childUID to set
-