Class Props
java.lang.Object
com.xinapse.platform.Props
The properties used by Jim, collected all in one place.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA property, consisting of a property name, a description of the property, and a string describing its possible values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Props.PropertySets whether Analyze 7.5 images should be stored compressed, or uncompressed.static final Props.PropertyWhether to turn on debugging in the com.xinapse.multisliceimage.analyze package.static final Props.PropertySets whether newly-created Analyze 7.5 images should have a non-flipped orientation.static final Props.PropertyWhether to turn on general debugging of DICOM images.static final Props.PropertySets whether not to flip flipped Analyze 7.5 images.static final Props.PropertyWhether to turn on license dongle debugging.static final Props.PropertyWhether to turn on debugging of the DICOM upper layer.static final Props.PropertySets whether to flip non-flipped Analyze 7.5 images.static final Props.PropertyWhether to run in GCP Clinical Trials mode.static final org.apache.commons.cli.OptionAn Option to list the Properties in HTML format.static final Props.PropertyWhether to turn on debugging in the com.xinapse.image package.static final Props.PropertyWhether to turn on debugging of JPEG image decoding.static final Props.PropertyTurns license debugging on.static final Props.PropertySets the license file location at run-time.static final Props.PropertyWhether to turn on debugging of loading libraries.static final Props.PropertyWhether to turn on debugging in the com.xinapse.multisliceimage package.static final Props.PropertySets whether NIFTI images should be stored compressed.static final Props.PropertySets whether NIFTI images that have qform and sform orientation both unset should be read as having an increasing a patient left coordinate value with stored pixel data column number, and whether NIFTI images should be prevented from being written without orientation information.static final Props.PropertySets whether NIFTI images should be stored in one file.static final Props.PropertySets whether NIFTI images should be saved with an orientation that is compatible with FSL.static final Props.PropertySets whether NIFTI images should be saved with an orientation that is compatible with SPM.static final Props.PropertySets the default output image class.static final Props.PropertyWhether to allow the creation of only POSIX-compliant file names.static final Props.PropertyWhether to turn on debugging of DICOM services.static final Props.PropertyWhether to run in text (non-GUI) mode.static final Props.PropertySpecifies the file-creation umask.static final Props.PropertyWhether to turn on debugging in the com.xinapse.multisliceimage.unc package.static final Props.PropertyWhether to overwrite UNC images without asking.static final Props.PropertySets whether the user should be warned about negative pixel heights in Analyze images.static final Props.PropertySets whether the user should be warned about negative pixel widths in Analyze images.static final Props.PropertyWhethet to write Not-a-Number to image when fitting fails. -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleangetBooleanProperty(Props.Property property) Returns a Boolean value from a System Property (if the property is set and has a value of eithertrueorfalse), or null.static FileReturns the user's Desktop folder as aFile, if it exists.static FileReturns the user's home directory.static FileReturns the folder that contains all the Tensorflow/Keras models.static List<Props.Property> Returns a List of non-standard Properties used in this application.static FileReturns the current working directory.static voidlistProperties(Logger logger, boolean htmlFormat) Lists all the non-standard Properties used in this application using a Logger.static voidProgram entry point for the Props program.static booleansetUserDir(File userDir) Sets the current working directory, if the argument is non-null, exists and is a directory.
-
Field Details
-
HTML_FORMAT_OPTION
public static final org.apache.commons.cli.Option HTML_FORMAT_OPTIONAn Option to list the Properties in HTML format. -
LICENSE_FILE_PROPERTY
Sets the license file location at run-time. -
LICENSE_DEBUG_PROPERTY
Turns license debugging on. -
TEXT_MODE_PROPERTY
Whether to run in text (non-GUI) mode. -
GCP_PROPERTY
Whether to run in GCP Clinical Trials mode. -
POSIX_COMPLIANT_PROPERTY
Whether to allow the creation of only POSIX-compliant file names. -
UMASK_PROPERTY
Specifies the file-creation umask. -
OUTPUT_TYPE_PROPERTY
Sets the default output image class. -
ANZ_75_COMPRESSED_PROPERTY
Sets whether Analyze 7.5 images should be stored compressed, or uncompressed. -
WARN_NEGATIVE_PIXEL_WIDTH_PROPERTY
Sets whether the user should be warned about negative pixel widths in Analyze images. -
WARN_NEGATIVE_PIXEL_HEIGHT_PROPERTY
Sets whether the user should be warned about negative pixel heights in Analyze images. -
FLIP_NON_FLIPPED_PROPERTY
Sets whether to flip non-flipped Analyze 7.5 images. -
DO_NOT_FLIP_FLIPPED_PROPERTY
Sets whether not to flip flipped Analyze 7.5 images. -
CREATE_NON_FLIPPED_PROPERTY
Sets whether newly-created Analyze 7.5 images should have a non-flipped orientation. -
NIFTI_ONE_FILE_PROPERTY
Sets whether NIFTI images should be stored in one file. -
NIFTI_COMPRESSED_PROPERTY
Sets whether NIFTI images should be stored compressed. -
NIFTI_SAVE_FSL_ORIENT_PROPERTY
Sets whether NIFTI images should be saved with an orientation that is compatible with FSL. -
NIFTI_SAVE_SPM_ORIENT_PROPERTY
Sets whether NIFTI images should be saved with an orientation that is compatible with SPM. -
NIFTI_FSL_COMPATIBLE_NIFTI_PROPERTY
Sets whether NIFTI images that have qform and sform orientation both unset should be read as having an increasing a patient left coordinate value with stored pixel data column number, and whether NIFTI images should be prevented from being written without orientation information. -
UNC_OVERWRITE_PROPERTY
Whether to overwrite UNC images without asking. -
WRITE_NAN_PROPERTY
Whethet to write Not-a-Number to image when fitting fails. -
IMAGE_DEBUG_PROPERTY
Whether to turn on debugging in the com.xinapse.image package. -
MSI_DEBUG_PROPERTY
Whether to turn on debugging in the com.xinapse.multisliceimage package. -
UNC_DEBUG_PROPERTY
Whether to turn on debugging in the com.xinapse.multisliceimage.unc package. -
ANZ_DEBUG_PROPERTY
Whether to turn on debugging in the com.xinapse.multisliceimage.analyze package. -
DONGLE_DEBUG_PROPERTY
Whether to turn on license dongle debugging. -
DCM_DEBUG_PROPERTY
Whether to turn on general debugging of DICOM images. -
DUL_DEBUG_PROPERTY
Whether to turn on debugging of the DICOM upper layer. -
SRV_DEBUG_PROPERTY
Whether to turn on debugging of DICOM services. -
JPEG_DEBUG_PROPERTY
Whether to turn on debugging of JPEG image decoding. -
LOAD_LIBRARY_DEBUG_PROPERTY
Whether to turn on debugging of loading libraries.
-
-
Method Details
-
getUserDir
Returns the current working directory.- Returns:
- the current working directory.
-
setUserDir
Sets the current working directory, if the argument is non-null, exists and is a directory.- Parameters:
userDir- the current working directory to set.- Returns:
- whether the current working directory was successfully set.
-
getHomeDir
Returns the user's home directory.- Returns:
- the user's home directory.
-
getProperties
Returns a List of non-standard Properties used in this application.- Returns:
- a List of non-standard Properties used in this application.
-
getDesktopDir
-
getModelsDir
Returns the folder that contains all the Tensorflow/Keras models.- Returns:
- the folder that contains all the Tensorflow/Keras models.
- Throws:
FileNotFoundException- if the folder can't be found.
-
listProperties
-
getBooleanProperty
Returns a Boolean value from a System Property (if the property is set and has a value of eithertrueorfalse), or null.- Parameters:
property- theProps.Propertyto check.- Returns:
- a Boolean value if the property is set, or
nullif not.
-
main
Program entry point for the Props program. The program lists all non-standard properties used by Jim.- Parameters:
args- the command line arguments. Use option --help to see the optional and compulsory program arguments.
-