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
Modifier and TypeFieldDescriptionstatic final int[]
static final int
The localisation has ambiguity i.e.static final int
Localisation has a a bearing value.static final int
There is an error value associated with a bearing resultstatic final int
The localisation has a depth valuestatic final int
The localisation has a depth errorstatic final int
Has an echo measurementstatic final int
The localisation is geo-referenced i.e.static final int
Errors parallel and perpendicular to the ships track.static final int
The localisation has a range valuestatic final int
The localisation has an associated range errorstatic final int
Time delays are presentstatic final int
The localisation has a 2D location relative to the hydrophone arraystatic final int
The localisation has a 3D location relative co-ordinate frame of the hydrophone array.static final int[]
Main types of interest. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocContent
(int flagsToAdd) Add a flag to the loclaisation.int
The integer specifying which flags are present in the loclaisation.static String
getTypeString
(int type) boolean
hasLocContent
(int requiredContent) Check that the localisation has specific content.int
removeLocContent
(int flagsToRemove) Remove a lfag from the loclaisationvoid
setLocContent
(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:LocalisationInfo
Set the overall bitmap flag. This deletes all porevious flags.- Specified by:
setLocContent
in 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:
getLocContent
in interfaceLocalisationInfo
- Returns:
- bitmap of localisation contents.
-
addLocContent
public void addLocContent(int flagsToAdd) Description copied from interface:LocalisationInfo
Add a flag to the loclaisation.- Specified by:
addLocContent
in interfaceLocalisationInfo
- Parameters:
flagsToAdd
- localisation flags to add to existing flags.
-
removeLocContent
public int removeLocContent(int flagsToRemove) Description copied from interface:LocalisationInfo
Remove a lfag from the loclaisation- Specified by:
removeLocContent
in 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:
hasLocContent
in interfaceLocalisationInfo
- Parameters:
requiredContent
- specified content- Returns:
- true if specified content exists, false otherwise.
-