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 voidaddCircle(java.lang.String roiLsid, double x, double y, double r)voidaddObject(java.lang.String lsid, ome.model.IObject obj)voidaddObjects(java.util.Map<java.lang.String,ome.model.IObject> map)voidaddRows(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.TablePrxgetTable()Returns the Table proxy which is in use by this service.voidinitialize(java.lang.String[] headers, java.lang.String[] idTypes, java.lang.Class[] types, java.util.Map<java.lang.String,java.lang.Object> metadata)voidsave()
-
-
-
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:
initializein interfaceOmeroMeasurementStore- Throws:
ServerError
-
addObject
public void addObject(java.lang.String lsid, ome.model.IObject obj)- Specified by:
addObjectin interfaceOmeroMeasurementStore
-
addObjects
public void addObjects(java.util.Map<java.lang.String,ome.model.IObject> map)
- Specified by:
addObjectsin interfaceOmeroMeasurementStore
-
addRows
public void addRows(java.lang.Object[][] rows) throws ServerErrorDescription copied from interface:OmeroMeasurementStoreAdds 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:
addRowsin interfaceOmeroMeasurementStore- Throws:
ServerError
-
addCircle
public void addCircle(java.lang.String roiLsid, double x, double y, double r) throws ServerError- Specified by:
addCirclein interfaceOmeroMeasurementStore- Throws:
ServerError
-
save
public void save() throws java.lang.Exception- Specified by:
savein interfaceOmeroMeasurementStore- Throws:
java.lang.Exception
-
getRoiIds
public java.util.List<java.lang.Long> getRoiIds()
Description copied from interface:OmeroMeasurementStoreReturns 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:
getRoiIdsin interfaceOmeroMeasurementStore
-
getTable
public TablePrx getTable()
Description copied from interface:OmeroMeasurementStoreReturns the Table proxy which is in use by this service.- Specified by:
getTablein interfaceOmeroMeasurementStore- Returns:
- See above.
-
-