Package loci.formats.tools
Class FakeImage
java.lang.Object
loci.formats.tools.FakeImage
Generates fake image structures. Methods defensively check
caller-supplied arguments and throw relevant exceptions where needed.
- Since:
- 5.0
- Author:
- Blazej Pindelski, bpindelski at dundee.ac.uk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate loci.common.Locationprivate static final org.slf4j.Loggerprivate ResourceNamer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloci.common.LocationgenerateScreen(int plates, int plateAcquisitions, int rows, int columns, int fields) Creates a fake SPW file/directory structure.static voidisValidRange(int arg, int min, int max)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
directoryRoot
private loci.common.Location directoryRoot -
resourceNamer
-
-
Constructor Details
-
FakeImage
public FakeImage(loci.common.Location directoryRoot)
-
-
Method Details
-
isValidRange
public static void isValidRange(int arg, int min, int max) -
generateScreen
public loci.common.Location generateScreen(int plates, int plateAcquisitions, int rows, int columns, int fields) Creates a fake SPW file/directory structure. Maximum supported size is a 384-well plate with multiple runs and fields. All arguments indicating plate or well element count must be at least1and cannot benull. The structure appears on the file system as:
foo.fake/ └── Plate000/ └── Run000/ └── WellA000/ └── Field000.fake ... ... WellA254/ WellB000/ ... WellAA000/ ... Run001/ ... Plate001/ ...- Parameters:
plates- Number of plates in a screen (max 255).plateAcquisitions- Number of plate acquisitions (runs) in a plate (max 255).rows- Number of rows in a plate (max 255).columns- Number of columns in a plate (max 255).fields- Number of fields for a plate acquisition (max 255).- Returns:
LocationInstance representing the top-level directory of the SPW structure.- Throws:
IllegalArgumentException- when any of the arguments fail validation.NullPointerException- when null specified as argument value.
-