Class OsUtil

java.lang.Object
org.processmining.framework.util.OsUtil

public class OsUtil extends Object
  • Field Details

  • Constructor Details

    • OsUtil

      public OsUtil()
  • Method Details

    • determineOS

      public static 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 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 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()