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
ConstructorsConstructorDescriptionSubdetectionInfo(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 TypeMethodDescriptionintcompareTo(SubdetectionInfo detectionToCompareAgainst) Calls the PamDataUnit compareTo method on the passed SubdetectionInfo object's subdetectionintintlonglongintlongvoidsetBinaryFileIndex(int binaryFileIndex) voidsetChildDatabaseIndex(int childDatabaseIndex) voidsetChildUID(long childUID) voidsetParentID(int linkID) voidsetParentUID(long linkUID) voidsetSubDetDataBlock(PamDataBlock subDetDataBlock) voidsetSubDetection(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:
 compareToin 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
 
 -