Changeset 874
- Timestamp:
- 03/22/10 17:02:09 (15 years ago)
- Location:
- applications/doprava/aimsun_bdm
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/doprava/aimsun_bdm/aimsun_ds.cpp
r860 r874 15 15 16 16 #define MAX_PATH_BYTES (MAX_PATH*sizeof(TCHAR)) 17 #define MAX_EXE_PATH (2*MAX_PATH)18 17 #define MAX_EXE_BYTES (MAX_EXE_PATH*sizeof(TCHAR)) 19 18 … … 47 46 const int MeasurementOffsets[] = { 6, 42 }; 48 47 49 AimsunDS::AimsunDS () : DS()48 AimsunDS::AimsunDS ( UIFile &cfg ) : DS() 50 49 { 51 50 HKEY hKey; … … 63 62 TCHAR szExePath[MAX_EXE_PATH]; /**< Command line when staring ELS3 controllers. */ 64 63 TCHAR szEntrancePath[MAX_PATH]; /**< Points to the CSV file with vehicle entrances for the simulation. */ 64 string entranceFileName; 65 string stopTime; 65 66 DWORD dwBufLen = MAX_PATH_BYTES; 66 67 LONG res; … … 211 212 ); 212 213 214 /* Fourth modification step. 215 Replace the `stop time` field of RunTime information. */ 216 UI::get ( stopTime, cfg, "stop_time" ); 217 replace_stoptime ( 218 szNetPath, 219 stopTime.c_str() 220 ); 221 213 222 StringCbCat ( szScePath, MAX_EXE_PATH, TEXT("\"") ); 214 223 StringCbCat ( szScePath, MAX_EXE_PATH, TEXT("\"") ); … … 261 270 Sleep ( 5000 ); 262 271 272 /* Query the configuration file for the name of the file containsing 273 vehicle entrances. */ 274 UI::get ( entranceFileName, cfg, "entrances" ); 275 263 276 /* Prepare full path for vehicle input data. */ 264 277 StringCbCopy ( szEntrancePath, MAX_EXE_PATH, szSceDir ); 265 StringCbCat ( szEntrancePath, MAX_EXE_PATH, TEXT("\\zlicin_20071212_495_601.csv") ); 278 StringCbCat ( szEntrancePath, MAX_EXE_PATH, TEXT("\\") ); 279 StringCbCat ( szEntrancePath, MAX_EXE_PATH, entranceFileName.c_str() ); 266 280 267 281 /* Initialise and start the vehicle input. -
applications/doprava/aimsun_bdm/aimsun_ds.h
r844 r874 30 30 public: 31 31 //! Constructor with fixed sampling period 32 AimsunDS ( );32 AimsunDS ( UIFile &cfg ); 33 33 34 34 //! Get measurements and signal plans from ELS3 controllers