org.jgap.util
Class SystemKit
- java.lang.Object
-
- org.jgap.util.SystemKit
-
public class SystemKit extends java.lang.ObjectSystem-related utility functions.- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor and Description SystemKit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublegetFreeMemoryKB()static doublegetFreeMemoryMB()static java.lang.StringgetGUID()static doublegetTotalMemoryKB()static doublegetTotalMemoryMB()static java.lang.StringniceMemory(double a_mem)Nicifies a decimal string by cutting of all but two decimal places.static voidprintHelp(org.apache.commons.cli.CommandLine cmd, org.apache.commons.cli.Options options)Prints all available comamnd line options.
-
-
-
Method Detail
-
getTotalMemoryMB
public static double getTotalMemoryMB()
- Returns:
- total memory available by the VM in megabytes.
- Since:
- 3.2 (since 3.0 in GPGenotype)
-
getTotalMemoryKB
public static double getTotalMemoryKB()
- Returns:
- total memory available by the VM in kilobytes.
- Since:
- 3.2.1
-
getFreeMemoryMB
public static double getFreeMemoryMB()
- Returns:
- free memory available in the VM in megabytes.
- Since:
- 3.2 (since 3.0 in GPGenotype)
-
getFreeMemoryKB
public static double getFreeMemoryKB()
- Returns:
- free memory available in the VM in kilobytes.
- Since:
- 3.2.1
-
niceMemory
public static java.lang.String niceMemory(double a_mem)
Nicifies a decimal string by cutting of all but two decimal places.- Parameters:
a_mem- the number to make nice- Returns:
- nicified number as a string
- Since:
- 3.3.1
-
printHelp
public static void printHelp(org.apache.commons.cli.CommandLine cmd, org.apache.commons.cli.Options options)Prints all available comamnd line options.- Parameters:
cmd- the CommandLine objectoptions- the Options list- Since:
- 3.3.4
-
getGUID
public static java.lang.String getGUID()
- Returns:
- a GUID
- Since:
- 3.5
-
-
DMelt 3.0 © DataMelt by jWork.ORG