Interface IExperiment
- All Known Implementing Classes:
SensorFrameworkExperiment
public interface IExperiment
Classes implementing the IExperiment interface provide methods for conducting experiments.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the ID.void
Initializes the experiment.void
reset()
Resets the experiment.void
startRun()
Starts an experiment run.void
stopRun()
Stops an experiment run.void
takeMeasurement
(String name, long startTime, long endTime) Adds measurement data (time interval) for the sensor with the specified name.
-
Method Details
-
init
Initializes the experiment.- Parameters:
name
- the name of the experiment
-
reset
void reset()Resets the experiment. -
getId
String getId()Gets the ID.- Returns:
- the ID
-
startRun
void startRun()Starts an experiment run. -
stopRun
void stopRun()Stops an experiment run. -
takeMeasurement
Adds measurement data (time interval) for the sensor with the specified name.- Parameters:
name
- the name of the sensorstartTime
- the start timeendTime
- the end time
-