summaryrefslogtreecommitdiff
path: root/src/actions/experiments.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/experiments.js')
-rw-r--r--src/actions/experiments.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/actions/experiments.js b/src/actions/experiments.js
new file mode 100644
index 00000000..b067f5d9
--- /dev/null
+++ b/src/actions/experiments.js
@@ -0,0 +1,24 @@
+export const FETCH_EXPERIMENTS_OF_SIMULATION = "FETCH_EXPERIMENTS_OF_SIMULATION";
+export const ADD_EXPERIMENT = "ADD_EXPERIMENT";
+export const DELETE_EXPERIMENT = "DELETE_EXPERIMENT";
+
+export function fetchExperimentsOfSimulation(simulationId) {
+ return {
+ type: FETCH_EXPERIMENTS_OF_SIMULATION,
+ simulationId
+ };
+}
+
+export function addExperiment(experiment) {
+ return {
+ type: ADD_EXPERIMENT,
+ experiment
+ };
+}
+
+export function deleteExperiment(id) {
+ return {
+ type: DELETE_EXPERIMENT,
+ id
+ };
+}