Class Experiment
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.api.http.Experiment
API class for controlling experiments and experiment iterations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
startExperiment
(String name) Starts an experiment with the specified name.void
startIteration
(String id) Starts an experiment iteration.javax.ws.rs.core.Response
Stops the currently running experiment.void
stopIteration
(String id) Stops an experiment iteration.
-
Constructor Details
-
Experiment
public Experiment()
-
-
Method Details
-
startExperiment
Starts an experiment with the specified name.- Parameters:
name
- the name of the experiment- Returns:
- an HTTP 204 response if the experiment was started successfully
-
stopExperiment
public javax.ws.rs.core.Response stopExperiment()Stops the currently running experiment.- Returns:
- an HTTP 204 response if the experiment was stopped successfully
-
startIteration
Starts an experiment iteration.- Parameters:
id
- the ID of the iteration
-
stopIteration
Stops an experiment iteration.- Parameters:
id
- the ID of the iteration
-