ome.services.blitz.measurements
Class MeasurementStore

java.lang.Object
  extended by ome.services.blitz.measurements.MeasurementStore
All Implemented Interfaces:
OmeroMeasurementStore

public class MeasurementStore
extends Object
implements OmeroMeasurementStore

Parser API implementation for storing result measurements from SPW companion files as ROIs and OMERO.tables.

Since:
Beta4.1

Constructor Summary
MeasurementStore(LocalUpdate update, omero.grid.TablePrx table)
           
 
Method Summary
 void addCircle(String roiLsid, double x, double y, double r)
           
 void addObject(String lsid, ome.model.IObject obj)
           
 void addObjects(Map<String,ome.model.IObject> map)
           
 void addRows(Object[][] rows)
          Adds an array of rows (Object[]) to the store.
 List<Long> getRoiIds()
          Returns the ids of all Roi instances created during the save method.
 omero.grid.TablePrx getTable()
          Returns the Table proxy which is in use by this service.
 void initialize(String[] headers, String[] idTypes, Class[] types, Map<String,Object> metadata)
           
 void save()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasurementStore

public MeasurementStore(LocalUpdate update,
                        omero.grid.TablePrx table)
                 throws omero.ServerError
Throws:
omero.ServerError
Method Detail

initialize

public void initialize(String[] headers,
                       String[] idTypes,
                       Class[] types,
                       Map<String,Object> metadata)
                throws omero.ServerError
Specified by:
initialize in interface OmeroMeasurementStore
Throws:
omero.ServerError

addObject

public void addObject(String lsid,
                      ome.model.IObject obj)
Specified by:
addObject in interface OmeroMeasurementStore

addObjects

public void addObjects(Map<String,ome.model.IObject> map)
Specified by:
addObjects in interface OmeroMeasurementStore

addRows

public void addRows(Object[][] rows)
             throws omero.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 to OmeroMeasurementStore.addRows(Object[][]) a call to OmeroMeasurementStore.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 interface OmeroMeasurementStore
Throws:
omero.ServerError

addCircle

public void addCircle(String roiLsid,
                      double x,
                      double y,
                      double r)
               throws omero.ServerError
Specified by:
addCircle in interface OmeroMeasurementStore
Throws:
omero.ServerError

save

public void save()
          throws Exception
Specified by:
save in interface OmeroMeasurementStore
Throws:
Exception

getRoiIds

public List<Long> getRoiIds()
Description copied from interface: OmeroMeasurementStore
Returns the ids of all Roi instances created during the save method. If Roi creation failed or if OmeroMeasurementStore.save() has not been called, this will return null.

Specified by:
getRoiIds in interface OmeroMeasurementStore

getTable

public omero.grid.TablePrx getTable()
Description copied from interface: OmeroMeasurementStore
Returns the Table proxy which is in use by this service.

Specified by:
getTable in interface OmeroMeasurementStore
Returns:


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.