public class XMLMockObjects extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
ANNOTATIONS
The supported types of annotations.
|
static ArcType |
ARC_TYPE
The default type of an arc.
|
static Binning |
BINNING
The default binning value.
|
static Integer |
BYTES_PER_PIXEL
The number of bytes per pixels.
|
static NamingConvention |
COLUMN_NAMING_CONVENTION
The default naming convention for columns.
|
static int |
COLUMNS
The default number of columns for a plate.
|
static String |
COMPONENT_LOT_NUMBER
The default lot number of a component of a microscope.
|
static String |
COMPONENT_MANUFACTURER
The default manufacturer of a component of a microscope.
|
static String |
COMPONENT_MODEL
The default model of a component of a microscope.
|
static String |
COMPONENT_SERIAL_NUMBER
The default serial number of a component of a microscope.
|
static Correction |
CORRECTION
The default objective's correction.
|
static Double |
CUT_IN
The default cut-in.
|
static Double |
CUT_OUT
The default cut-out.
|
static Color |
DEFAULT_COLOR
The default color.
|
static DetectorType |
DETECTOR_TYPE
The default type of a detector.
|
static DimensionOrder |
DIMENSION_ORDER
The default dimension order.
|
static ExperimentType |
EXPERIMENT_TYPE
The default type of a microscope.
|
static int |
FIELDS
The default number of fields for a well.
|
static FilamentType |
FILAMENT_TYPE
The default type of a filament.
|
static FilterType |
FILTER_TYPE
The default objective's immersion.
|
static Immersion |
IMMERSION
The default objective's immersion.
|
protected Instrument |
instrument
The instrument used for the metadata.
|
static LaserMedium |
LASER_MEDIUM
The default type of a laser.
|
static LaserType |
LASER_TYPE
The default type of a laser.
|
static String[] |
LIGHT_SOURCES
The light sources to handle.
|
static Double |
LIGHTSOURCE_POWER
The default power of a light source.
|
static Medium |
MEDIUM
The default medium for the objective.
|
static MicrobeamManipulationType |
MICROBEAM_MANIPULATION_TYPE
The default type of a microbeam manipulation.
|
static MicroscopeType |
MICROSCOPE_TYPE
The default type of a microscope.
|
static int |
NUMBER_OF_DECTECTORS
The number of detectors created.
|
static int |
NUMBER_OF_DICHROICS
The number of dichroics created.
|
static int |
NUMBER_OF_FILTERS
The number of filters created.
|
static int |
NUMBER_OF_OBJECTIVES
The number of objectives created.
|
protected OME |
ome
Root of the file.
|
static PixelType |
PIXEL_TYPE
The default pixels type.
|
static String |
POINTS
Points used to create Polyline and Polygon shape.
|
static NamingConvention |
ROW_NAMING_CONVENTION
The default naming convention for rows.
|
static int |
ROWS
The default number of rows for a plate.
|
static String[] |
SHAPES
The shapes to handle.
|
static Integer |
SIZE_C
The default number of channels.
|
static Integer |
SIZE_T
The default number of time-points.
|
static Integer |
SIZE_X
The default number of pixels along the X-axis.
|
static Integer |
SIZE_Y
The default number of pixels along the Y-axis.
|
static Integer |
SIZE_Z
The default number of z-sections.
|
static String |
TIME
The default time.
|
Constructor and Description |
---|
XMLMockObjects()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
OME |
createAnnotatedImage()
Creates and annotates an image.
|
Annotation |
createAnnotation(String type,
OMEModelObject object,
int index)
Create a comment annotation for the specified object.
|
Plate |
createBasicPlate(int index)
Creates a basic plate.
|
OME |
createBasicPlateWithReagent()
Creates a plate with
1 row, 1 column
and 1 field. |
BinaryFile |
createBinaryFile()
Creates a binary file.
|
BinData |
createBinData(int sizeX,
int sizeY,
int bpp)
Creates a new object.
|
Channel |
createChannel(int index)
Creates a channel.
|
Dataset |
createDataset(int index)
Creates a dataset.
|
Detector |
createDetector(int index)
Creates a detector.
|
DetectorSettings |
createDetectorSettings(int ref)
Creates a detector settings.
|
Dichroic |
createDichroic(int index)
Creates a dichroic.
|
Experiment |
createExperiment(int index)
Creates an experiment.
|
Experimenter |
createExperimenter(int index)
Creates an experimenter.
|
Experiment |
createExperimentWithMicrobeam(int index)
Creates an experiment with a microbeam.
|
Filter |
createFilter(int index,
double cutIn,
double cutOut)
Creates a filter.
|
FilterSet |
createFilterSet(int index)
Creates a filter set.
|
OME |
createFullPopulatedPlate(int n)
|
OME |
createImage()
Creates and returns the root element.
|
OME |
createImage(boolean metadata)
Creates and returns the root element.
|
Image |
createImage(int index)
Creates a new image.
|
Image |
createImage(int index,
boolean metadata)
Creates a new image.
|
ImagingEnvironment |
createImageEnvironment()
Creates a imaging environment.
|
OME |
createImageWithAcquisitionData()
Creates an image with acquisition data.
|
OME |
createImageWithAnnotatedAcquisitionData()
Creates an image with acquisition data.
|
Image |
createImageWithExperiment(int index,
boolean metadata,
Experiment exp)
Creates an image with a given experiment.
|
OME |
createImageWithROI()
Creates an image with ROI.
|
Instrument |
createInstrument(boolean populate)
Creates an instrument with filters, light sources etc.
|
LightPath |
createLightPath()
Creates a light path.
|
LightSource |
createLightSource(String type,
int index)
Creates a light source of the specified type.
|
LightSourceSettings |
createLightSourceSettings(int ref)
Creates a light source settings.
|
MicrobeamManipulation |
createMicrobeamManipulation(int index)
Creates a microbeam manipulation.
|
Microscope |
createMicroscope()
Creates a microscope.
|
Objective |
createObjective(int index)
Creates an objective.
|
ObjectiveSettings |
createObjectiveSettings(int ref)
Creates an objective settings.
|
Plane |
createPlane(int z,
int c,
int t)
Creates a plane information object.
|
Plate |
createPlate(int numberOfPlates,
int index,
int numberOfPlateAcquisition)
Creates a default plate
|
Plate |
createPlate(int numberOfPlates,
int index,
int rows,
int columns,
int fields,
int numberOfPlateAcquisition)
Creates a populated plate with images.
|
Plate |
createPlate(int numberOfPlates,
int index,
int rows,
int columns,
int fields,
int numberOfPlateAcquisition,
boolean withMicrobeam)
Creates a populated plate with images.
|
Plate |
createPlate(int numberOfScreens,
int screenIndex,
int numberOfPlates,
int plateIndex,
int rows,
int columns,
int fields,
int numberOfPlateAcquisition)
Creates a populated plate with images.
|
Plate |
createPlate(int numberOfScreens,
int screenIndex,
int numberOfPlates,
int plateIndex,
int rows,
int columns,
int fields,
int numberOfPlateAcquisition,
boolean withMicrobeam)
Creates a populated plate with images.
|
OME |
createPopulatedPlate(int n)
Creates a plate with
1 row, 1 column
and 1 field. |
OME |
createPopulatedPlate(int n,
int fields)
Creates a plate with
1 row, 1 column
and fields field. |
OME |
createPopulatedPlate(int plates,
int rows,
int cols,
int fields,
int acqs)
Creates several plates but no containing screen.
|
OME |
createPopulatedPlate(int plates,
int rows,
int cols,
int fields,
int acqs,
boolean withMicrobeam)
Creates several plates but no containing screen.
|
OME |
createPopulatedScreen()
Creates one 2x2 plate of with a single well sample per well and one
plate acquisition.
|
OME |
createPopulatedScreen(int plates,
int rows,
int cols,
int fields,
int acqs)
Creates a screen with several plates.
|
OME |
createPopulatedScreen(int screens,
int plates,
int rows,
int cols,
int fields,
int acqs)
Creates several screens each with several plates.
|
OME |
createPopulatedScreen(int screens,
int plates,
int rows,
int cols,
int fields,
int acqs,
boolean withMicrobeam)
Creates several screens each with several plates.
|
Project |
createProject(int index)
Creates a project.
|
Reagent |
createReagent(int index)
Creates a reagent.
|
ROI |
createROI(int index,
int z,
int c,
int t)
Creates an ROI.
|
Screen |
createScreen(int index)
Creates a screen.
|
Shape |
createShape(int index,
String type,
int z,
int c,
int t)
Creates the specified type of shape.
|
StageLabel |
createStageLabel()
Creates a imaging environment.
|
private AffineTransform |
createTransform() |
OME |
getRoot()
Returns the root of the XML file.
|
private void |
populateInstrument()
Creates and populates the instrument.
|
public static final Color DEFAULT_COLOR
public static final Double LIGHTSOURCE_POWER
public static final String COMPONENT_MODEL
public static final String COMPONENT_MANUFACTURER
public static final String COMPONENT_SERIAL_NUMBER
public static final String COMPONENT_LOT_NUMBER
public static final LaserType LASER_TYPE
public static final ArcType ARC_TYPE
public static final FilamentType FILAMENT_TYPE
public static final DetectorType DETECTOR_TYPE
public static final Correction CORRECTION
public static final Immersion IMMERSION
public static final FilterType FILTER_TYPE
public static final MicroscopeType MICROSCOPE_TYPE
public static final ExperimentType EXPERIMENT_TYPE
public static final MicrobeamManipulationType MICROBEAM_MANIPULATION_TYPE
public static final Binning BINNING
public static final Medium MEDIUM
public static final LaserMedium LASER_MEDIUM
public static final Integer SIZE_X
public static final Integer SIZE_Y
public static final Integer SIZE_Z
public static final Integer SIZE_C
public static final Integer SIZE_T
public static final Integer BYTES_PER_PIXEL
public static final int ROWS
public static final int COLUMNS
public static final int FIELDS
public static final String[] LIGHT_SOURCES
public static final String[] SHAPES
public static final String[] ANNOTATIONS
public static final NamingConvention ROW_NAMING_CONVENTION
public static final NamingConvention COLUMN_NAMING_CONVENTION
public static final DimensionOrder DIMENSION_ORDER
public static final PixelType PIXEL_TYPE
public static final int NUMBER_OF_DECTECTORS
public static final int NUMBER_OF_OBJECTIVES
public static final int NUMBER_OF_FILTERS
public static final int NUMBER_OF_DICHROICS
public static final String POINTS
public static final String TIME
public static final Double CUT_IN
public static final Double CUT_OUT
protected OME ome
protected Instrument instrument
private void populateInstrument()
public Detector createDetector(int index)
index
- The index of the detector in the file.public FilterSet createFilterSet(int index)
index
- The index of the filter set in the file.public Microscope createMicroscope()
public Dichroic createDichroic(int index)
index
- The index of the dichroic in the file.public Objective createObjective(int index)
index
- The index of the objective in the file.public Filter createFilter(int index, double cutIn, double cutOut)
index
- The index of the objective in the file.cutIn
- The cut in value.cutOut
- The cut out value.public LightSource createLightSource(String type, int index)
type
- The type of light source to create.index
- The index of the light source in the file.public BinData createBinData(int sizeX, int sizeY, int bpp)
sizeX
- The number of pixels along the X-axis.sizeY
- The number of pixels along the Y-axis.bpp
- The number of bytes per pixels.public LightPath createLightPath()
public ImagingEnvironment createImageEnvironment()
public StageLabel createStageLabel()
public LightSourceSettings createLightSourceSettings(int ref)
ref
- Reference to the light source.public MicrobeamManipulation createMicrobeamManipulation(int index)
index
- The index in the file.public Experimenter createExperimenter(int index)
index
- The index of the Experimenter.public Experiment createExperiment(int index)
index
- The index in the file.public Experiment createExperimentWithMicrobeam(int index)
index
- The index in the file.public DetectorSettings createDetectorSettings(int ref)
ref
- Reference to the detector.public ObjectiveSettings createObjectiveSettings(int ref)
ref
- Reference to the objective.public BinaryFile createBinaryFile()
public Shape createShape(int index, String type, int z, int c, int t)
index
- The index of the shape in the file.type
- The type of shape to create.z
- The selected z-section.c
- The selected channel.t
- The selected time-point.private AffineTransform createTransform()
public ROI createROI(int index, int z, int c, int t)
index
- The index of the ROI in the file.z
- The selected z-section.c
- The selected channel.t
- The selected time-point.public OME getRoot()
public Project createProject(int index)
index
- The index of the project.public Dataset createDataset(int index)
index
- The index of the dataset.public Screen createScreen(int index)
index
- The index of the screen.public Plate createBasicPlate(int index)
index
- The index of the plate.public Plate createPlate(int numberOfPlates, int index, int numberOfPlateAcquisition)
numberOfPlates
- The total number of plates.index
- The index of the plate.numberOfPlateAcquisition
- The number of plate acquisition to add.public Plate createPlate(int numberOfPlates, int index, int rows, int columns, int fields, int numberOfPlateAcquisition)
numberOfPlates
- The total number of plates.index
- The index of the plate.rows
- The number of rows.columns
- The number of columns.fields
- The number of fields.numberOfPlateAcquisition
- The number of plate acquisition to add.public Plate createPlate(int numberOfPlates, int index, int rows, int columns, int fields, int numberOfPlateAcquisition, boolean withMicrobeam)
numberOfPlates
- The total number of plates.index
- The index of the plate.rows
- The number of rows.columns
- The number of columns.fields
- The number of fields.numberOfPlateAcquisition
- The number of plate acquisition to add.withMicrobeam
- Whether the experiment should contain a microbeampublic Plate createPlate(int numberOfScreens, int screenIndex, int numberOfPlates, int plateIndex, int rows, int columns, int fields, int numberOfPlateAcquisition)
numberOfScreens
- The total number of screens.screenIndex
- The index of the screen.numberOfPlates
- The total number of plates.plateIndex
- The index of the plate.rows
- The number of rows.columns
- The number of columns.fields
- The number of fields.numberOfPlateAcquisition
- The number of plate acquisition to add.public Plate createPlate(int numberOfScreens, int screenIndex, int numberOfPlates, int plateIndex, int rows, int columns, int fields, int numberOfPlateAcquisition, boolean withMicrobeam)
numberOfScreens
- The total number of screens.screenIndex
- The index of the screen.numberOfPlates
- The total number of plates.plateIndex
- The index of the plate.rows
- The number of rows.columns
- The number of columns.fields
- The number of fields.numberOfPlateAcquisition
- The number of plate acquisition to add.withMicrobeam
- Whether the experiment should contain a microbeampublic Plane createPlane(int z, int c, int t)
z
- The z-section.c
- The channel.t
- The time-point.public Image createImage(int index, boolean metadata)
index
- The identifier of the image.metadata
- Pass true
to create channel with acquisition
metadata, false
otherwise.public Channel createChannel(int index)
index
- The index in the file.public Image createImage(int index)
index
- The identifier of the image.public Instrument createInstrument(boolean populate)
populate
- Pass true
to populate the instrument,
false
otherwise.public Reagent createReagent(int index)
index
- The index in the file.public Annotation createAnnotation(String type, OMEModelObject object, int index)
type
- The type of annotation to create.object
- The object to link the annotation to.index
- The index of the annotation.public OME createImage()
public OME createImage(boolean metadata)
metadata
- Pass true
to create an image with metadata,
false
w/o/public OME createAnnotatedImage()
public OME createImageWithAcquisitionData()
public OME createImageWithAnnotatedAcquisitionData()
public Image createImageWithExperiment(int index, boolean metadata, Experiment exp)
public OME createImageWithROI()
public OME createPopulatedPlate(int n)
1
row, 1
column
and 1
field.
The plate will have images with acquisition data but no plate acquisition
data if the passed value is 0
otherwise will have
n
plate acquisitions.n
- The number of plate acquisition.public OME createPopulatedPlate(int n, int fields)
1
row, 1
column
and fields
field.
The plate will have images with acquisition data but no plate acquisition
data if the passed value is 0
otherwise will have
n
plate acquisitions.n
- The number of plate acquisition.fields
- The number of fields.public OME createPopulatedPlate(int plates, int rows, int cols, int fields, int acqs)
plates
- The number of plates to create.rows
- The number of rows for plate.cols
- The number of columns for plate.fields
- The number of fields.acqs
- The number of plate acquisitions.public OME createPopulatedPlate(int plates, int rows, int cols, int fields, int acqs, boolean withMicrobeam)
plates
- The number of plates to create.rows
- The number of rows for plate.cols
- The number of columns for plate.fields
- The number of fields.acqs
- The number of plate acquisitions.withMicrobeam
- Whether the experiment should contain a microbeampublic OME createPopulatedScreen(int screens, int plates, int rows, int cols, int fields, int acqs)
screens
- The number of screens to create.plates
- The number of plates to create.rows
- The number of rows for plate.cols
- The number of columns for plate.fields
- The number of fields.acqs
- The number of plate acquisitions.public OME createPopulatedScreen(int screens, int plates, int rows, int cols, int fields, int acqs, boolean withMicrobeam)
screens
- The number of screens to create.plates
- The number of plates to create.rows
- The number of rows for plate.cols
- The number of columns for plate.fields
- The number of fields.acqs
- The number of plate acquisitions.withMicrobeam
- Whether the experiment should contain a microbeampublic OME createPopulatedScreen(int plates, int rows, int cols, int fields, int acqs)
plates
- The number of plates to create.rows
- The number of rows for plate.cols
- The number of columns for plate.fields
- The number of fields.acqs
- The number of plate acquisitions.public OME createPopulatedScreen()
public OME createBasicPlateWithReagent()
1
row, 1
column
and 1
field. This plate will be added to a screen
and the well linked to a reagent.Copyright © 2016 Open Microscopy Environment