Package ome.services.blitz.measurements
Class MeasurementStore
- java.lang.Object
-
- ome.services.blitz.measurements.MeasurementStore
-
- All Implemented Interfaces:
OmeroMeasurementStore
public class MeasurementStore extends java.lang.Object implements OmeroMeasurementStore
Parser API implementation for storing result measurements from SPW companion files as ROIs and OMERO.tables.- Since:
- Beta4.1
-
-
Constructor Summary
Constructors Constructor Description MeasurementStore(ome.api.local.LocalUpdate update, TablePrx table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCircle(java.lang.String roiLsid, double x, double y, double r)
void
addObject(java.lang.String lsid, ome.model.IObject obj)
void
addObjects(java.util.Map<java.lang.String,ome.model.IObject> map)
void
addRows(java.lang.Object[][] rows)
Adds an array of rows (Object[]) to the store.java.util.List<java.lang.Long>
getRoiIds()
Returns the ids of all Roi instances created during the save method.TablePrx
getTable()
Returns the Table proxy which is in use by this service.void
initialize(java.lang.String[] headers, java.lang.String[] idTypes, java.lang.Class[] types, java.util.Map<java.lang.String,java.lang.Object> metadata)
void
save()
-
-
-
Constructor Detail
-
MeasurementStore
public MeasurementStore(ome.api.local.LocalUpdate update, TablePrx table) throws ServerError
- Throws:
ServerError
-
-
Method Detail
-
initialize
public void initialize(java.lang.String[] headers, java.lang.String[] idTypes, java.lang.Class[] types, java.util.Map<java.lang.String,java.lang.Object> metadata) throws ServerError
- Specified by:
initialize
in interfaceOmeroMeasurementStore
- Throws:
ServerError
-
addObject
public void addObject(java.lang.String lsid, ome.model.IObject obj)
- Specified by:
addObject
in interfaceOmeroMeasurementStore
-
addObjects
public void addObjects(java.util.Map<java.lang.String,ome.model.IObject> map)
- Specified by:
addObjects
in interfaceOmeroMeasurementStore
-
addRows
public void addRows(java.lang.Object[][] rows) throws ServerError
Description copied from interface:OmeroMeasurementStore
Adds an array of rows (Object[]) to the store. These rows might be indexed by an LSID which correlates to an added ROI. For each call toOmeroMeasurementStore.addRows(Object[][])
a call toOmeroMeasurementStore.save()
must be made. This allows a single measurement store to be filled with the values from multiple measurement files. To differentiate between the various files, include a File lsid column during the initialization phase.- Specified by:
addRows
in interfaceOmeroMeasurementStore
- Throws:
ServerError
-
addCircle
public void addCircle(java.lang.String roiLsid, double x, double y, double r) throws ServerError
- Specified by:
addCircle
in interfaceOmeroMeasurementStore
- Throws:
ServerError
-
save
public void save() throws java.lang.Exception
- Specified by:
save
in interfaceOmeroMeasurementStore
- Throws:
java.lang.Exception
-
getRoiIds
public java.util.List<java.lang.Long> getRoiIds()
Description copied from interface:OmeroMeasurementStore
Returns the ids of all Roi instances created during the save method. If Roi creation failed or ifOmeroMeasurementStore.save()
has not been called, this will return null.- Specified by:
getRoiIds
in interfaceOmeroMeasurementStore
-
getTable
public TablePrx getTable()
Description copied from interface:OmeroMeasurementStore
Returns the Table proxy which is in use by this service.- Specified by:
getTable
in interfaceOmeroMeasurementStore
- Returns:
- See above.
-
-