Package PamDetection
Class LocContents
java.lang.Object
PamDetection.LocContents
- All Implemented Interfaces:
 LocalisationInfo
Class for holding information on what a type of information a localisation has. 
 This is the typical class used throughout PAMGuard but specialised localisers might using a different subclass of LocalisationInfo.
- Author:
 - Jamie Macaulay
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int[]static final intThe localisation has ambiguity i.e.static final intLocalisation has a a bearing value.static final intThere is an error value associated with a bearing resultstatic final intThe localisation has a depth valuestatic final intThe localisation has a depth errorstatic final intHas an echo measurementstatic final intThe localisation is geo-referenced i.e.static final intErrors parallel and perpendicular to the ships track.static final intThe localisation has a range valuestatic final intThe localisation has an associated range errorstatic final intTime delays are presentstatic final intThe localisation has a 2D location relative to the hydrophone arraystatic final intThe localisation has a 3D location relative co-ordinate frame of the hydrophone array.static final int[]Main types of interest. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocContent(int flagsToAdd) Add a flag to the loclaisation.intThe integer specifying which flags are present in the loclaisation.static StringgetTypeString(int type) booleanhasLocContent(int requiredContent) Check that the localisation has specific content.intremoveLocContent(int flagsToRemove) Remove a lfag from the loclaisationvoidsetLocContent(int locContents) Set the overall bitmap flag. 
- 
Field Details
- 
HAS_TIMEDELAYS
public static final int HAS_TIMEDELAYSTime delays are present- See Also:
 
 - 
HAS_ECHO
public static final int HAS_ECHOHas an echo measurement- See Also:
 
 - 
HAS_BEARING
public static final int HAS_BEARINGLocalisation has a a bearing value.
This is either 2 bearings representing a hyperbole, 2 bearings from a planar array or 1 3D bearing.- See Also:
 
 - 
HAS_BEARINGERROR
public static final int HAS_BEARINGERRORThere is an error value associated with a bearing result- See Also:
 
 - 
HAS_RANGE
public static final int HAS_RANGEThe localisation has a range value- See Also:
 
 - 
HAS_DEPTH
public static final int HAS_DEPTHThe localisation has a depth value- See Also:
 
 - 
HAS_RANGEERROR
public static final int HAS_RANGEERRORThe localisation has an associated range error- See Also:
 
 - 
HAS_DEPTHERROR
public static final int HAS_DEPTHERRORThe localisation has a depth error- See Also:
 
 - 
HAS_LATLONG
public static final int HAS_LATLONGThe localisation is geo-referenced i.e. has a latitude and longitude- See Also:
 
 - 
HAS_XY
public static final int HAS_XYThe localisation has a 2D location relative to the hydrophone array- See Also:
 
 - 
HAS_XYZ
public static final int HAS_XYZThe localisation has a 3D location relative co-ordinate frame of the hydrophone array.- See Also:
 
 - 
HAS_AMBIGUITY
public static final int HAS_AMBIGUITYThe localisation has ambiguity i.e. multiple results are present.- See Also:
 
 - 
HAS_PERPENDICULARERRORS
public static final int HAS_PERPENDICULARERRORSErrors parallel and perpendicular to the ships track.- See Also:
 
 - 
allTypes
public static final int[] allTypes - 
mainTypes
public static final int[] mainTypesMain types of interest. 
 - 
 - 
Constructor Details
- 
LocContents
public LocContents(int cont)  
 - 
 - 
Method Details
- 
getTypeString
 - 
setLocContent
public void setLocContent(int locContents) Description copied from interface:LocalisationInfoSet the overall bitmap flag. This deletes all porevious flags.- Specified by:
 setLocContentin interfaceLocalisationInfo- Parameters:
 locContents- a set of flags specifying which data are available within this localisation object.
 - 
getLocContent
public int getLocContent()The integer specifying which flags are present in the loclaisation.- Specified by:
 getLocContentin interfaceLocalisationInfo- Returns:
 - bitmap of localisation contents.
 
 - 
addLocContent
public void addLocContent(int flagsToAdd) Description copied from interface:LocalisationInfoAdd a flag to the loclaisation.- Specified by:
 addLocContentin interfaceLocalisationInfo- Parameters:
 flagsToAdd- localisation flags to add to existing flags.
 - 
removeLocContent
public int removeLocContent(int flagsToRemove) Description copied from interface:LocalisationInfoRemove a lfag from the loclaisation- Specified by:
 removeLocContentin interfaceLocalisationInfo- Parameters:
 flagsToRemove- bitmap of localisation flags to remove.- Returns:
 - new or remaining localisation content flags.
 
 - 
hasLocContent
public boolean hasLocContent(int requiredContent) Check that the localisation has specific content.- Specified by:
 hasLocContentin interfaceLocalisationInfo- Parameters:
 requiredContent- specified content- Returns:
 - true if specified content exists, false otherwise.
 
 
 -