diff --git a/screening/source/java/ch/systemsx/cisd/openbis/dss/etl/dataaccess/ImgFeatureValuesDTO.java b/screening/source/java/ch/systemsx/cisd/openbis/dss/etl/dataaccess/ImgFeatureValuesDTO.java index 471c6007f8034da84d9d0e588c599cc844ddd5a1..0cda1a2925fbb083021929723a9f2d1999cb8525 100644 --- a/screening/source/java/ch/systemsx/cisd/openbis/dss/etl/dataaccess/ImgFeatureValuesDTO.java +++ b/screening/source/java/ch/systemsx/cisd/openbis/dss/etl/dataaccess/ImgFeatureValuesDTO.java @@ -19,6 +19,8 @@ package ch.systemsx.cisd.openbis.dss.etl.dataaccess; import net.lemnik.eodsql.AutoGeneratedKeys; import net.lemnik.eodsql.ResultColumn; +import ch.systemsx.cisd.base.convert.NativeTaggedArray; +import ch.systemsx.cisd.base.mdarray.MDDoubleArray; import ch.systemsx.cisd.common.utilities.AbstractHashable; /** @@ -56,6 +58,11 @@ public class ImgFeatureValuesDTO extends AbstractHashable this.featureDefId = featureDefId; } + public ImgFeatureValuesDTO(Double zInM, Double tInSec, MDDoubleArray array, long featureDefId) + { + this(zInM, tInSec, NativeTaggedArray.toByteArray(array), featureDefId); + } + public long getId() { return id; @@ -112,4 +119,9 @@ public class ImgFeatureValuesDTO extends AbstractHashable this.t = tInSec; } + public MDDoubleArray getValuesDoubleArray() + { + return NativeTaggedArray.tryToDoubleArray(getValues()); + } + }