Class Subject
java.lang.Object
org.episteme.natural.methodology.experiment.Subject
- All Implemented Interfaces:
Serializable, Identified<Identification>, Named, Positioned<Place>
public class Subject
extends Object
implements Named, Identified<Identification>, Positioned<Place>, Serializable
A class representing an animal or human subject that takes part in an experiment.
In a scientific experiment, the subject is the individual being observed or tested.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSubject(Individual individual) Creates a new Subject for the given individual.Subject(Individual individual, List<Task> tasks) Creates a new Subject for the given individual and tasks. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddValuedVariable(ValuedVariable valuedVariable) voidaddValuedVariables(Collection<ValuedVariable> variables) getId()Returns the unique identifier of this entity.getName()Returns the position of this entity.getState()getTasks()booleanisValid()voidvoidsetState(Subject.State state) toString()
-
Constructor Details
-
Subject
Creates a new Subject for the given individual.- Parameters:
individual- The individual participating in the experiment.
-
Subject
Creates a new Subject for the given individual and tasks.- Parameters:
individual- The individual participating in the experiment.tasks- The tasks assigned to this subject.
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getName
-
setName
-
getIndividual
-
getState
-
setState
-
isValid
public boolean isValid() -
getTasks
-
addTask
-
addValuedVariable
-
addValuedVariables
-
getAllValuedVariables
-
getStartTime
-
getPosition
Description copied from interface:PositionedReturns the position of this entity.- Specified by:
getPositionin interfacePositioned<Place>- Returns:
- the position.
-
toString
-