root/applications/doprava/aimsun_bdm/aimsun_ds.h @ 829

Revision 829, 1.0 kB (checked in by prikryl, 14 years ago)

Added includes needed for initVGS().
Cleaned the code.

RevLine 
[814]1/*!
2  \file
3  \brief DataSource for experiments with Aimsun
[825]4  \author Jan Prikryl.
[814]5
6*/
7
[829]8/* WIN32 stuff */
9#include <windows.h>
10#include <stdio.h>
11#include <tchar.h>
12
[814]13#include <base/loggers.h>
14
[829]15extern "C" {
16  #include "eh_hrd.h"
17  #include "vgs_hrd.h"
18}
19
[814]20using namespace bdm;
21
22//! Simulator of traffic - AIMSUN
23class AimsunDS : public DS
24{
25
26protected:
[825]27        eh_els3hrd * p_rsp;
28        //! pointer to realised signal plans stored in local data space of eh_api */
29
[814]30public:
31    //! Constructor with fixed sampling period
[825]32    AimsunDS ();
[814]33
[825]34    //! Get measurements and signal plans from ELS3 controllers
35    void getdata ( vec &dt ) const;
[814]36
[825]37    //! Write new signal plans to ELS3
38    void write ( vec &ut );
[814]39
[825]40    //! Wait for new data and copy them out to local buffers
41    void step();
[814]42
43    // TODO dodelat void to_setting( Setting &root ) const;
[825]44private:
45        void AimsunDS::initVGS (
46                const vgs_headway_mode headway,
47                const TCHAR * entrancePath,
48                const TCHAR * sectionStatsPath,
49                const TCHAR * globalStatsPath
50        );
[814]51};
Note: See TracBrowser for help on using the browser.