Changeset 836 for applications/doprava
- Timestamp:
- 02/23/10 15:48:19 (15 years ago)
- Location:
- applications/doprava
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/doprava/Zlicin.cfg
r820 r836 19 19 name = "601DVA1"; 20 20 distance = 100; 21 to = ("VC","VD");21 to_sg = ("VC","VD"); 22 22 }, 23 23 { 24 24 name = "601DVA"; 25 25 distance = 100; 26 to = ("VC","VD");26 to_sg = ("VC","VD"); 27 27 } 28 28 ); … … 36 36 37 37 offset = 40; //s 38 moje_special=14; 38 39 }, 39 40 { //agent 2 -
applications/doprava/main_loop.cpp
r832 r836 57 57 glob_ut[11] = 20; 58 58 59 for ( int tK=0; tK<Ds.max_length();tK++ ) {59 for ( int tK=0; tK < Ds.max_length(); tK++ ) { 60 60 Ds.log_write ( ); // write stuff to 61 61 Ds.getdata(glob_dt); -
applications/doprava/traffic_agent.h
r820 r836 18 18 string name; //! detector name 19 19 int distance; //! distance from stop-line 20 RV rv; 20 21 21 //! function loading info from Setting 22 22 void from_setting(const Setting &set){ … … 30 30 class DetectorIn : public Detector{ 31 31 string from; // from agent 32 Array<string> to ; // to signal plans32 Array<string> to_sg; // to signal plans 33 33 void from_setting(const Setting &set){ 34 34 Detector::from_setting(set); 35 35 UI::get(from,set,"from",UI::compulsory); 36 UI::get(to , set, "to", UI::compulsory);36 UI::get(to_sg, set, "to_sg", UI::compulsory); 37 37 } 38 38 };