JGAP

org.jgap.util
Class SystemKit

java.lang.Object
  extended by org.jgap.util.SystemKit

public class SystemKit
extends java.lang.Object

System-related utility functions.

Since:
3.2

Constructor Summary
SystemKit()
           
 
Method Summary
static double getFreeMemoryKB()
           
static double getFreeMemoryMB()
           
static double getTotalMemoryKB()
           
static double getTotalMemoryMB()
           
static java.lang.String niceMemory(double a_mem)
          Nicifies a decimal string by cutting of all but two decimal places.
static void printHelp(CommandLine cmd, Options options)
          Prints all available comamnd line options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemKit

public SystemKit()
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(CommandLine cmd,
                             Options options)
Prints all available comamnd line options.

Parameters:
cmd - the CommandLine object
options - the Options list
Since:
3.3.4

JGAP