Interface Experiment<I,R>
- Type Parameters:
I- The input configuration typeR- The result type
- All Superinterfaces:
Commented, ComprehensiveIdentification, Identified<Identification>, Named, Serializable
- All Known Implementing Classes:
ScientificExperiment, TrialExperiment
Represents a scientific experiment that takes an input configuration
and produces a result.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionGets the hypothesis this experiment aims to test.default IdentificationgetId()Returns the unique identifier of this entity.default StringgetName()Executes the experiment with the given input.Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getTrait, getTraits, setName, setTrait
-
Method Details
-
run
Executes the experiment with the given input.- Parameters:
input- the experimental parameters- Returns:
- a future providing the result
-
getHypothesis
Hypothesis<R> getHypothesis()Gets the hypothesis this experiment aims to test.- Returns:
- the hypothesis, or null if exploratory
-
getName
- Specified by:
getNamein interfaceComprehensiveIdentification- Specified by:
getNamein interfaceNamed
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<I>- Returns:
- the identifier
-