Class SensorFrameworkExperiment

  • All Implemented Interfaces:
    IExperiment

    @Singleton
    public final class SensorFrameworkExperiment
    extends Object
    implements IExperiment
    The SensorFrameworkExperiment provides a Sensor Framework implementation of IExperiment.
    • Constructor Detail

      • SensorFrameworkExperiment

        public SensorFrameworkExperiment()
        Constructs a new SensorFrameworkExperiment object.
    • Method Detail

      • init

        public void init​(String experimentName)
        Description copied from interface: IExperiment
        Initializes the experiment.
        Specified by:
        init in interface IExperiment
        Parameters:
        experimentName - the name of the experiment
      • reset

        public void reset()
        Description copied from interface: IExperiment
        Resets the experiment.
        Specified by:
        reset in interface IExperiment
      • startRun

        public void startRun()
        Description copied from interface: IExperiment
        Starts an experiment run.
        Specified by:
        startRun in interface IExperiment
      • stopRun

        public void stopRun()
        Description copied from interface: IExperiment
        Stops an experiment run.
        Specified by:
        stopRun in interface IExperiment
      • takeMeasurement

        public void takeMeasurement​(String name,
                                    long startTime,
                                    long endTime)
        Description copied from interface: IExperiment
        Adds measurement data (time interval) for the sensor with the specified name.
        Specified by:
        takeMeasurement in interface IExperiment
        Parameters:
        name - the name of the sensor
        startTime - the start time
        endTime - the end time