Class Sample<P>
java.lang.Object
org.episteme.core.methodology.Sample<P>
- Type Parameters:
P- The type of the position (e.g., GeoCoordinates, Vector3D, String default).
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<P>
Represents a physical or conceptual sample used in a scientific experiment.
A sample is the object of study, which can be material (e.g., a rock, a tissue), biological (e.g., an individual), or even social.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the unique identifier of this entity.getName()Returns the position of this entity.Returns the traits map for this entity.voidvoidsetCategory(String category) voidsetDescription(String description) voidSets the name of this entity.voidsetPosition(P position) voidsetSamplingDate(Instant samplingDate) voidtoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getTrait, setTrait
-
Constructor Details
-
Sample
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<P>- Returns:
- the identifier
-
getName
- Specified by:
getNamein interfaceComprehensiveIdentification- Specified by:
getNamein interfaceNamed
-
setName
Description copied from interface:ComprehensiveIdentificationSets the name of this entity.- Specified by:
setNamein interfaceComprehensiveIdentification- Parameters:
name- the name to set
-
getDescription
-
setDescription
-
getSamplingDate
-
setSamplingDate
-
getCategory
-
setCategory
-
getAmount
-
setAmount
-
getSource
-
setSource
-
getPosition
Description copied from interface:PositionedReturns the position of this entity.- Specified by:
getPositionin interfacePositioned<P>- Returns:
- the position.
-
setPosition
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
toString
-