Documentation of 'org.jgap.util.SystemKit' Java class
SystemKit
org.jgap.util

Class SystemKit



  • public class SystemKit
    extends java.lang.Object
    System-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 double getFreeMemoryKB() 
      static double getFreeMemoryMB() 
      static java.lang.String getGUID() 
      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(org.apache.commons.cli.CommandLine cmd, org.apache.commons.cli.Options options)
      Prints all available comamnd line options.
      • Methods inherited from class java.lang.Object

        equals, 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(org.apache.commons.cli.CommandLine cmd,
                                     org.apache.commons.cli.Options options)
        Prints all available comamnd line options.
        Parameters:
        cmd - the CommandLine object
        options - 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

You see the box below because you did not login.