source: tmcsimulator/branches/fep_client_cpp/network.h @ 70

Revision 70, 1.1 KB checked in by jtorres, 9 years ago (diff)

expanded client

Line 
1#ifndef NETWORK_H
2#define NETWORK_H
3
4typedef struct loopagg LOOPAGG;
5struct loopagg
6{
7        int             index;
8        char    lane;                   // how namy lanes at the detector station
9        long    time;
10        int             interval;
11        int     g_vol;
12        float   g_occ;
13        double  g_spd;
14        int             *vol;
15        float   *occ;
16        double  *spd;
17};
18
19// FEP line: has several lds
20typedef struct fep_line_lds FEP_LINE_LDS;
21struct  fep_line_lds
22{
23        int             lineNum;
24        vector<long> lds;
25        vector<long> ldsIndex;  // location in ldsMap
26        short   ldsNum;                 // actual number of lds on the line
27
28        short   count;  // actual count from caltrans
29        int             schedule;
30        int             lineInfo;
31        long    systemKey;
32        long    globalSeq;
33        long    schedleSeq;
34};
35
36typedef struct Lds_loop LDS_LOOP;
37struct  Lds_loop
38{
39        // Each lds has its own line_num and drop (Caltrans use)
40        long    lds;
41        short   line_num;
42        short   drop;
43
44        int             num;    // number of loops
45        long    *loopID;
46        char    **loop_loc;
47
48        // LDS data
49        unsigned char   *dataPack;
50        int             length;         // total length of data (max: 87)
51        int             pos;            // pointer for data preparation
52        int             MlTotVol;       // each 30 sec, the following will be updated
53        int             OppTotVol;      // each 30 sec, the following will be updated
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.