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