Package pamguard

Class Pamguard

java.lang.Object
pamguard.Pamguard

public class Pamguard extends Object
Pamguard main class.
Author:
Douglas Gillespie
  • Constructor Details

    • Pamguard

      public Pamguard()
  • Method Details

    • main

      public static void main(String[] args)
      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

      public static String 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

      public static String 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

      public static boolean checkJavaVersion(String javaV)
      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