Class Pamguard
- Author:
- Douglas Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkJavaVersion
(String javaV) Check the java version that is passed to this method against the min and max java versions specified in PamguardVersionInfo.static void
Disable the log filestatic void
Create a new log filestatic String
Return the log file namestatic String
Get the settings folder name and if necessary, create the folder since it may not exist.static void
PAMGUARD can be started in three different modes.
-
Constructor Details
-
Pamguard
public Pamguard()
-
-
Method Details
-
main
PAMGUARD can be started in three different modes.Normal mode (no args in) is for everyday data processing and collection.
-v = Viewer mode which will connect to a database and re-display data from a given time period.
-m = Mixed mode which will connect to a database, Sounds are analysed from file and new results written to the database, but other data, such as GPS data, are read from the database synchronised in time to the audio data to correctly reconstruct tracks, etc. PAMGuard generally needs more memory than allocated by default and you'll need to tell it where various library files are for access to Windows i/o devices. You will therefore need the following two commands to the jre, which if you're running from Eclipse are entered into the Arguments / VM arguments section of the run configuration: -Xmx6g -Djava.library.path=lib64
- Parameters:
args
-
-
getSettingsFolder
Get the settings folder name and if necessary, create the folder since it may not exist. Originally found in PamSettingManager - moved here and made static- Returns:
- folder name string, (with no file separator on the end)
-
getLogFileName
Return the log file name -
disableLogFile
public static void disableLogFile()Disable the log file -
enableLogFile
public static void enableLogFile()Create a new log file -
checkJavaVersion
Check the java version that is passed to this method against the min and max java versions specified in PamguardVersionInfo.- Parameters:
javaV
- The java version to check- Returns:
- true if the java version falls within the min/max range, false otherwise
-