#ifndef NETWORK_H #define NETWORK_H typedef struct loopagg LOOPAGG; struct loopagg { int index; char lane; // how namy lanes at the detector station long time; int interval; int g_vol; float g_occ; double g_spd; int *vol; float *occ; double *spd; }; // FEP line: has several lds typedef struct fep_line_lds FEP_LINE_LDS; struct fep_line_lds { int lineNum; vector lds; vector ldsIndex; // location in ldsMap short ldsNum; // actual number of lds on the line short count; // actual count from caltrans int schedule; int lineInfo; long systemKey; long globalSeq; long schedleSeq; }; typedef struct Lds_loop LDS_LOOP; struct Lds_loop { // Each lds has its own line_num and drop (Caltrans use) long lds; short line_num; short drop; int num; // number of loops long *loopID; char **loop_loc; // LDS data unsigned char *dataPack; int length; // total length of data (max: 87) int pos; // pointer for data preparation int MlTotVol; // each 30 sec, the following will be updated int OppTotVol; // each 30 sec, the following will be updated }; #endif