]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/layout.h
Make the simulation independent of wall clock time
[r2c2.git] / source / libr2c2 / layout.h
index 204a60f6d90b9e64718386cbeb384c3f511fa570..7c61c4fdecf8ead4c767efc77ba564849a417f65 100644 (file)
@@ -7,6 +7,7 @@
 #include <msp/time/timestamp.h>
 #include "geometry.h"
 #include "sensor.h"
+#include "clock.h"
 
 namespace R2C2 {
 
@@ -84,6 +85,7 @@ public:
 private:
        Catalogue &catalogue;
        Driver *driver;
+       Clock clock;
        std::string base;
        Storage<Object> objects;
        Storage<TrackChain> track_chains;
@@ -99,6 +101,7 @@ public:
        Catalogue &get_catalogue() const { return catalogue; }
        bool has_driver() const { return driver; }
        Driver &get_driver() const;
+       const Clock &get_clock() const { return clock; }
        const std::string &get_base() const { return base; }
 
        void add(Object &);