Class OsUtil


  • public class OsUtil
    extends java.lang.Object
    • Constructor Detail

      • OsUtil

        public OsUtil()
    • Method Detail

      • determineOS

        public static java.lang.String determineOS()
      • is64Bit

        public static boolean is64Bit()
      • is32Bit

        public static boolean is32Bit()
      • isRunningWindows

        public static boolean isRunningWindows()
      • isRunningMacOsX

        public static boolean isRunningMacOsX()
      • isRunningLinux

        public static boolean isRunningLinux()
      • isRunningUnix

        public static boolean isRunningUnix()
      • setWorkingDirectoryAtStartup

        public static void setWorkingDirectoryAtStartup()
      • getProMPackageDirectory

        public static java.io.File getProMPackageDirectory()
        Returns a handle to the ProM package folder. Creates the folder in case it does not yet exist.
        Returns:
        The handle to the folder.
      • hasProMPackageDirectory

        public static boolean hasProMPackageDirectory()
        Returns whether the ProM package folder exists on this system.
        Returns:
        Whether the folder exists.
      • getProMWorkspaceDirectory

        public static java.io.File getProMWorkspaceDirectory()
        Returns a handle to the ProM workspace folder. Creates the folder in case it does not yet exist.
        Returns:
        The handle to the folder.
      • hasProMWorkspaceDirectory

        public static boolean hasProMWorkspaceDirectory()
        Returns whether the ProM workspace folder exists on this system.
        Returns:
        Whether the folder exists.
      • getPhysicalMemory

        public static long getPhysicalMemory()