Package org.processmining.framework.util
Class OsUtil
java.lang.Object
org.processmining.framework.util.OsUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static long
static File
Returns a handle to the ProM package folder.static File
Returns a handle to the ProM workspace folder.static boolean
Returns whether the ProM package folder exists on this system.static boolean
Returns whether the ProM workspace folder exists on this system.static boolean
is32Bit()
static boolean
is64Bit()
static boolean
static boolean
static boolean
static boolean
static void
-
Field Details
-
OS_WIN32
- See Also:
-
OS_WIN64
- See Also:
-
OS_MACOSX
- See Also:
-
OS_MACOSCLASSIC
- See Also:
-
OS_LINUX
- See Also:
-
OS_BSD
- See Also:
-
OS_RISCOS
- See Also:
-
OS_BEOS
- See Also:
-
OS_UNKNOWN
- See Also:
-
-
Constructor Details
-
OsUtil
public OsUtil()
-
-
Method Details
-
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
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
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()
-