org.jgap.util
Class SystemKit
java.lang.Object
org.jgap.util.SystemKit
public class SystemKit
- extends java.lang.Object
System-related utility functions.
- Since:
- 3.2
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemKit
public SystemKit()
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(CommandLine cmd,
Options options)
- Prints all available comamnd line options.
- Parameters:
cmd - the CommandLine objectoptions - the Options list- Since:
- 3.3.4