Interface IExperiment
-
- All Known Implementing Classes:
SensorFrameworkExperiment
public interface IExperiment
Classes implementing the IExperiment interface provide methods for conducting experiments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getId()
Gets the ID.void
init(String name)
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 Detail
-
init
void init(String name)
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
void takeMeasurement(String name, long startTime, long endTime)
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
-
-