Class Sample
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.editing_tools.script_helper.Sample
- All Implemented Interfaces:
AttributeValuePairSupport
,MappingDataEntity
,SampleInterface
,Comparable<SampleInterface>
,Iterable<NumericMeasurementInterface>
,Collection<NumericMeasurementInterface>
public class Sample extends Object implements SampleInterface
-
Field Summary
Fields Modifier and Type Field Description static String
UNSPECIFIED_TIME_STRING
Fields inherited from interface de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.editing_tools.script_helper.MappingDataEntity
ANNO_DIV
-
Constructor Summary
Constructors Constructor Description Sample(ConditionInterface parent)
-
Method Summary
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
UNSPECIFIED_TIME_STRING
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Sample
-
-
Method Details
-
toString
-
getString
- Specified by:
getString
in interfaceSampleInterface
-
getXMLAttributeString
- Specified by:
getXMLAttributeString
in interfaceMappingDataEntity
- Specified by:
getXMLAttributeString
in interfaceSampleInterface
-
getStringOfChildren
- Specified by:
getStringOfChildren
in interfaceMappingDataEntity
- Specified by:
getStringOfChildren
in interfaceSampleInterface
-
getParentCondition
- Specified by:
getParentCondition
in interfaceSampleInterface
-
setSampleTtestInfo
- Specified by:
setSampleTtestInfo
in interfaceSampleInterface
-
getSampleTime
- Specified by:
getSampleTime
in interfaceSampleInterface
-
getDataList
- Specified by:
getDataList
in interfaceSampleInterface
-
getSampleAverage
- Specified by:
getSampleAverage
in interfaceSampleInterface
-
setSampleAverage
- Specified by:
setSampleAverage
in interfaceSampleInterface
-
getTimeUnit
- Specified by:
getTimeUnit
in interfaceSampleInterface
-
getFullId
Get a id, based on experiment name, plant name and genotype, time point and time unit This can be used to find similar data entries for example for other substances. If this id and additionally the replicate ID matches, two values from two substances may be comparable.- Specified by:
getFullId
in interfaceSampleInterface
- Returns:
- A id, which may be used to compare the data point with other data points from other substances.
-
recalculateSampleAverage
public void recalculateSampleAverage()- Specified by:
recalculateSampleAverage
in interfaceSampleInterface
-
getTtestInfo
- Specified by:
getTtestInfo
in interfaceSampleInterface
-
setData
public boolean setData(org.jdom2.Element sampleElement)- Specified by:
setData
in interfaceMappingDataEntity
- Specified by:
setData
in interfaceSampleInterface
-
calcMean
public double calcMean()- Specified by:
calcMean
in interfaceSampleInterface
-
setAttribute
public void setAttribute(org.jdom2.Attribute attr)- Specified by:
setAttribute
in interfaceMappingDataEntity
- Specified by:
setAttribute
in interfaceSampleInterface
-
setDataOfChildElement
public void setDataOfChildElement(org.jdom2.Element childElement)- Specified by:
setDataOfChildElement
in interfaceMappingDataEntity
- Specified by:
setDataOfChildElement
in interfaceSampleInterface
-
setMeasurementtool
- Specified by:
setMeasurementtool
in interfaceSampleInterface
-
getMeasurementtool
- Specified by:
getMeasurementtool
in interfaceSampleInterface
-
setTimeUnit
- Specified by:
setTimeUnit
in interfaceSampleInterface
-
setTime
public void setTime(int time)- Specified by:
setTime
in interfaceSampleInterface
-
getTime
public int getTime()- Specified by:
getTime
in interfaceSampleInterface
-
setRowId
public void setRowId(long rowId)- Specified by:
setRowId
in interfaceSampleInterface
-
getRowId
public long getRowId()- Specified by:
getRowId
in interfaceSampleInterface
-
setTtestInfo
- Specified by:
setTtestInfo
in interfaceSampleInterface
-
setParent
- Specified by:
setParent
in interfaceSampleInterface
-
getAverageUnit
- Specified by:
getAverageUnit
in interfaceSampleInterface
-
add
- Specified by:
add
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
add
in interfaceSampleInterface
-
addAll
- Specified by:
addAll
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
addAll
in interfaceSampleInterface
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
clear
in interfaceSampleInterface
-
contains
- Specified by:
contains
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
contains
in interfaceSampleInterface
-
containsAll
- Specified by:
containsAll
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
containsAll
in interfaceSampleInterface
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
isEmpty
in interfaceSampleInterface
-
remove
Don't forget to call updateSampleAverage after removing a measurement.- Specified by:
remove
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
remove
in interfaceSampleInterface
-
removeAll
- Specified by:
removeAll
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
removeAll
in interfaceSampleInterface
-
retainAll
- Specified by:
retainAll
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
retainAll
in interfaceSampleInterface
-
size
public int size()- Specified by:
size
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
size
in interfaceSampleInterface
-
toArray
- Specified by:
toArray
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
toArray
in interfaceSampleInterface
-
toArray
public <T> T[] toArray(T[] a)- Specified by:
toArray
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
toArray
in interfaceSampleInterface
-
iterator
- Specified by:
iterator
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
iterator
in interfaceIterable<NumericMeasurementInterface>
- Specified by:
iterator
in interfaceSampleInterface
-
fillAttributeMap
- Specified by:
fillAttributeMap
in interfaceAttributeValuePairSupport
- Specified by:
fillAttributeMap
in interfaceSampleInterface
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SampleInterface>
- Specified by:
compareTo
in interfaceSampleInterface
-
equals
- Specified by:
equals
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
equals
in interfaceSampleInterface
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<NumericMeasurementInterface>
- Specified by:
hashCode
in interfaceSampleInterface
- Overrides:
hashCode
in classObject
-
clone
- Specified by:
clone
in interfaceSampleInterface
-