summaryrefslogtreecommitdiff
path: root/Simulator/include/database/Database.h
diff options
context:
space:
mode:
authorMatthijs Bijman <matthijs@bijman.org>2017-02-16 22:06:09 +0100
committerMatthijs Bijman <matthijs@bijman.org>2017-02-16 22:06:09 +0100
commite0b305fd1d845cba1b11578722f88adb193f756e (patch)
tree90440eafff0f2b72571eee8a9b9c644d39ae4b75 /Simulator/include/database/Database.h
parent6fa9f879a5dab29cdf481e70b6f303caf69bd76f (diff)
Update simulator to work with new db schema
The new schema removes the queued_simulation_section table and introduces the state and last_simulated_tick columns to the experiments table.
Diffstat (limited to 'Simulator/include/database/Database.h')
-rw-r--r--Simulator/include/database/Database.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Simulator/include/database/Database.h b/Simulator/include/database/Database.h
index 6e8bfeef..7f867d6c 100644
--- a/Simulator/include/database/Database.h
+++ b/Simulator/include/database/Database.h
@@ -49,6 +49,10 @@ namespace Database
*/
void dequeueExperiment(int id) const;
+ /*
+ Marks the given experiment as finished in the database.
+ */
+ void finishExperiment(int id) const;
/*
Creates a simulation object from a simulation in the database.