double function ( ) { long loc0 = Runtime . getRuntime ( ) . totalMemory ( ) ; long loc1 = Runtime . getRuntime ( ) . maxMemory ( ) ; long loc2 = Runtime . getRuntime ( ) . freeMemory ( ) ; return ( loc1 - loc0 + loc2 ) / ( double ) loc1 ; }
returns the total free memory as double between 1.0 and 0.0 . 0.0 means that there is no free memory available . 1.0 means that the memory is completely free . note that this function also takes the memory into account that the vm will allocate , if more memory is required . concode_field_sep double BIG_VALUE concode_elem_sep String VersionString concode_elem_sep String EOL concode_elem_sep boolean useGarbageCollection concode_elem_sep double DOUBLE_EPSILON concode_elem_sep HashMap<Class<? extends Object>,ArrayList<Object>> classLookupTable concode_elem_sep String CONRADBibtex concode_elem_sep int DEBUGLEVEL concode_elem_sep String CONRADDefinition concode_elem_sep int INVERSE_SPEEDUP concode_elem_sep double FLOAT_EPSILON concode_elem_sep long INPUT_QUEUE_DELAY concode_elem_sep String CONRADMedline concode_elem_sep double SMALL_VALUE concode_field_sep String getUserHome concode_elem_sep void setUseGarbageCollection concode_elem_sep int getNumberOfThreads concode_elem_sep boolean isUseGarbageCollection concode_elem_sep void log concode_elem_sep ArrayList<Object> getInstancesFromConrad concode_elem_sep List<Class<? extends Object>> findClasses concode_elem_sep void setup concode_elem_sep void gc concode_elem_sep ArrayList<Object> getInstancesFromConradFromClasspath concode_elem_sep ArrayList<Class<? extends Object>> getClasses