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:
 
- 
Field Summary
Fields inherited from class Array.HydrophoneLocator
streamer - 
Constructor Summary
ConstructorsConstructorDescriptionMasterLocator(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.protected GpsDatagetStreamerGpsPos(long timeMilliseconds) Get streamer GPS data.booleanNote- changeable refers to the array positions changing relative to each other.booleanisStatic()protected HydrophoneLocatorlocatorForHydrophone(int iPhone) Work out which locator to use for a specific hydrophoneprotected HydrophoneLocatorlocatorForStreamer(int iStreamer) voidnotifyModelChanged(int changeType, boolean initComplete) booleansetLocatorSettings(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.protected voidsetupLocators(PamArray currentArray) Methods inherited from class Array.HydrophoneLocator
getStreamer, getStreamerLatLong 
- 
Constructor Details
- 
MasterLocator
Individual locators will not be serialised. 
 - 
 - 
Method Details
- 
setupLocators
 - 
locatorForHydrophone
Work out which locator to use for a specific hydrophone- Parameters:
 iPhone- hydrophone index- Returns:
 
 - 
locatorForStreamer
 - 
getStreamerGpsPos
Description copied from class:HydrophoneLocatorGet streamer GPS data. This is only used internally and most calls should be to getStreamerLatLong, which returns an object that also has the orientation data.- Specified by:
 getStreamerGpsPosin classHydrophoneLocator- Parameters:
 timeMilliseconds-- Returns:
 - Gps data (without orientation sensors)
 
 - 
getPhoneLatLong
Description copied from class:HydrophoneLocatorGet's the LatLong of a specific hydrophone at a given time.- Overrides:
 getPhoneLatLongin classHydrophoneLocator- Parameters:
 timeMilliseconds- time position needed forphoneNo- Hydrophone number- Returns:
 - Hydrophone LatLong
 
 - 
notifyModelChanged
public void notifyModelChanged(int changeType, boolean initComplete) - Specified by:
 notifyModelChangedin classHydrophoneLocator
 - 
isStatic
public boolean isStatic()- Specified by:
 isStaticin 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:HydrophoneLocatorNote- 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:
 isChangeablein classHydrophoneLocator- Returns:
 - true if the hydrophone positions within the array can change with time
 
 - 
getLocatorSettings
- Specified by:
 getLocatorSettingsin 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:
 setLocatorSettingsin classHydrophoneLocator
 - 
getName
- Specified by:
 getNamein classHydrophoneLocator
 - 
getDefaultSettings
- Specified by:
 getDefaultSettingsin classHydrophoneLocator
 - 
getParameterSet
Description copied from class:HydrophoneLocatorGet 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:
 getParameterSetin interfaceManagedParameters- Overrides:
 getParameterSetin classHydrophoneLocator- Returns:
 - description of the parameters in a class.
 
 
 -