Package Array
Class MasterLocator
java.lang.Object
Array.HydrophoneLocator
Array.MasterLocator
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
public class MasterLocator
extends HydrophoneLocator
implements Serializable, Cloneable, ManagedParameters
Master PAMGuard array localiser. There is now one of these and
of no other type within each PamArray and this will call out
to different Localisers dependent on which channel is being used.
- Author:
- Doug Gillespie
- See Also:
-
Constructor Summary
ConstructorDescriptionMasterLocator
(PamArray pamArray) Individual locators will not be serialised. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the auto-generated parameter set, and then add in the fields that are not included because they are not public and do not have getters.getPhoneLatLong
(long timeMilliseconds, int phoneNo) Get's the LatLong of a specific hydrophone at a given time.boolean
Note- changeable refers to the array positions changing relative to each other.boolean
isStatic()
void
notifyModelChanged
(int changeType, boolean initComplete) boolean
setLocatorSettings
(LocatorSettings unusedSettings) This is used a bit differently in the master locator since it's passed null, but will have an array list of settings from when it was deserialized which it must pass on to the other locators.Methods inherited from class Array.HydrophoneLocator
getStreamer, getStreamerLatLong
-
Constructor Details
-
MasterLocator
Individual locators will not be serialised.
-
-
Method Details
-
getPhoneLatLong
Description copied from class:HydrophoneLocator
Get's the LatLong of a specific hydrophone at a given time.- Overrides:
getPhoneLatLong
in classHydrophoneLocator
- Parameters:
timeMilliseconds
- time position needed forphoneNo
- Hydrophone number- Returns:
- Hydrophone LatLong
-
notifyModelChanged
public void notifyModelChanged(int changeType, boolean initComplete) - Specified by:
notifyModelChanged
in classHydrophoneLocator
-
isStatic
public boolean isStatic()- Specified by:
isStatic
in classHydrophoneLocator
- Returns:
- true if it's some sort of static array (not using GPS data in any way).
-
isChangeable
public boolean isChangeable()Description copied from class:HydrophoneLocator
Note- changeable refers to the array positions changing relative to each other. i.e. the array doesn't change with heading or gps position, it's only changeable if the distances between hydrophones can change with time.- Specified by:
isChangeable
in classHydrophoneLocator
- Returns:
- true if the hydrophone positions within the array can change with time
-
getLocatorSettings
- Specified by:
getLocatorSettings
in classHydrophoneLocator
-
setLocatorSettings
This is used a bit differently in the master locator since it's passed null, but will have an array list of settings from when it was deserialized which it must pass on to the other locators.- Specified by:
setLocatorSettings
in classHydrophoneLocator
-
getName
- Specified by:
getName
in classHydrophoneLocator
-
getDefaultSettings
- Specified by:
getDefaultSettings
in classHydrophoneLocator
-
getParameterSet
Description copied from class:HydrophoneLocator
Get the auto-generated parameter set, and then add in the fields that are not included because they are not public and do not have getters. Note: for each field, we search the current class and (if that fails) the superclass. It's done this way in case HydrophoneLocator is used directly (and thus the field would be found in the class), or else it might be used as a superclass to something else (e.g. MasterLocator) in which case the field would only be found in the superclass.- Specified by:
getParameterSet
in interfaceManagedParameters
- Overrides:
getParameterSet
in classHydrophoneLocator
- Returns:
- description of the parameters in a class.
-