Class SensorFrameworkExperiment
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.experiment.SensorFrameworkExperiment
- All Implemented Interfaces:
IExperiment
The SensorFrameworkExperiment provides a Sensor Framework implementation of IExperiment.
-
Constructor Summary
ConstructorDescriptionConstructs a new SensorFrameworkExperiment object. -
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.
-
Constructor Details
-
SensorFrameworkExperiment
public SensorFrameworkExperiment()Constructs a new SensorFrameworkExperiment object.
-
-
Method Details
-
init
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
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
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
-