Class TrialExperiment
java.lang.Object
org.episteme.core.methodology.ScientificExperiment<Void, Set<ValuedVariable>>
org.episteme.natural.methodology.experiment.TrialExperiment
- All Implemented Interfaces:
Serializable, Experiment<Void, Set<ValuedVariable>>, Commented, ComprehensiveIdentification, Identified<Identification>, Named, UniversalDataModel
A class representing a scientific experiment involving subjects, tasks, and variables.
This class specializes ScientificExperiment for experimental designs
common in psychology, biology, and social sciences.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTrialExperiment(String name) TrialExperiment(String name, String description) -
Method Summary
Modifier and TypeMethodDescriptionaddSubject(Individual individual, List<Task> tasks) Adds a subject to the experiment.Gets the hypothesis this experiment aims to test.intGets all subjects involved in the experiment.getTasks()Gets all tasks defined across all subjects.booleanExecutes the experiment with the given input.Methods inherited from class ScientificExperiment
addAuthor, addReference, getAuthors, getDescription, getEndDate, getId, getMetadata, getModelType, getName, getObservations, getQuantities, getReferences, getStartDate, getTraits, record, setDescription, setEndDate, setName, setStartDateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getTrait, setTraitMethods inherited from interface UniversalDataModel
validate
-
Constructor Details
-
TrialExperiment
-
TrialExperiment
-
-
Method Details
-
getSubjects
-
getNumSubjects
public int getNumSubjects() -
addSubject
Adds a subject to the experiment.- Parameters:
individual- The individual to add.tasks- The tasks assigned to this individual in this experiment.- Returns:
- The created Subject.
-
isExperimentComplete
public boolean isExperimentComplete() -
getTasks
-
run
Description copied from interface:ExperimentExecutes the experiment with the given input.- Specified by:
runin interfaceExperiment<Void, Set<ValuedVariable>>- Overrides:
runin classScientificExperiment<Void, Set<ValuedVariable>>- Parameters:
input- the experimental parameters- Returns:
- a future providing the result
-
getHypothesis
Description copied from interface:ExperimentGets the hypothesis this experiment aims to test.- Specified by:
getHypothesisin interfaceExperiment<Void, Set<ValuedVariable>>- Overrides:
getHypothesisin classScientificExperiment<Void, Set<ValuedVariable>>- Returns:
- the hypothesis, or null if exploratory
-