Class SensorFrameworkExperiment
- java.lang.Object
-
- org.palladiosimulator.protocom.framework.java.ee.experiment.SensorFrameworkExperiment
-
- All Implemented Interfaces:
IExperiment
@Singleton public final class SensorFrameworkExperiment extends Object implements IExperiment
The SensorFrameworkExperiment provides a Sensor Framework implementation of IExperiment.
-
-
Constructor Summary
Constructors Constructor Description SensorFrameworkExperiment()
Constructs a new SensorFrameworkExperiment object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Gets the ID.void
init(String experimentName)
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
public void init(String experimentName)
Description copied from interface:IExperiment
Initializes the experiment.- Specified by:
init
in interfaceIExperiment
- Parameters:
experimentName
- the name of the experiment
-
reset
public void reset()
Description copied from interface:IExperiment
Resets the experiment.- Specified by:
reset
in interfaceIExperiment
-
getId
public String getId()
Description copied from interface:IExperiment
Gets the ID.- Specified by:
getId
in interfaceIExperiment
- Returns:
- the ID
-
startRun
public void startRun()
Description copied from interface:IExperiment
Starts an experiment run.- Specified by:
startRun
in interfaceIExperiment
-
stopRun
public void stopRun()
Description copied from interface:IExperiment
Stops an experiment run.- Specified by:
stopRun
in interfaceIExperiment
-
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 interfaceIExperiment
- Parameters:
name
- the name of the sensorstartTime
- the start timeendTime
- the end time
-
-