Changeset 1134 for applications/doprava
- Timestamp:
- 07/13/10 17:37:59 (15 years ago)
- Location:
- applications/doprava/aimsun_bdm
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/doprava/aimsun_bdm/aimsun_ds.cpp
r1123 r1134 135 135 } 136 136 137 AimsunDS::~AimsunDS ( void ) 138 { 139 /* Stop Aimsun. */ 140 BOOL res = TerminateProcess ( (HANDLE)hPid, 0 ); 141 if ( ! res ) 142 { 143 fprintf ( stderr, "Cannot terminate Aimsun, error code %d!\n", GetLastError() ); 144 } 145 146 /* Controllers are most likely waiting for another input 147 so unblock them - their message loop will receive the 148 "Aimsun exited" message right away. */ 149 eh_wakeup_controllers (); 150 } 151 137 152 void AimsunDS::from_setting ( const Setting &cfg ) 138 153 { … … 179 194 DWORD dwBufLen = MAX_PATH_BYTES; 180 195 LONG res; 181 182 intptr_t hPid;183 196 184 197 int verIndex = 1; //@TODO@: 0 is for release, 1 for debug build of the DLL libraries. -
applications/doprava/aimsun_bdm/aimsun_ds.h
r1089 r1134 35 35 AimsunDS (); 36 36 37 //! Destructor 38 ~AimsunDS (); 39 37 40 //! Get measurements and signal plans from ELS3 controllers 38 41 void getdata ( vec &dt ) const; … … 55 58 // TODO dodelat void to_setting( Setting &root ) const; 56 59 private: 60 //! Handle of the Aimsun process. Used to terminate Aimsun after simulation. 61 intptr_t hPid; 62 57 63 //! File name containing vehicle entrances into the network 58 64 string entranceFileName;