Changeset 1026 for applications/doprava/traffic_agent.cpp
- Timestamp:
- 06/02/10 00:13:50 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/doprava/traffic_agent.cpp
r986 r1026 31 31 } 32 32 33 exp_output=last_inputs*(green_time/agent->step_ time);33 exp_output=last_inputs*(green_time/agent->step_length); 34 34 35 35 //////// … … 43 43 44 44 for (int i=0;i<inputs.length();i+=2) { 45 density+=inputs(i)/agent->step_ time;45 density+=inputs(i)/agent->step_length; 46 46 } 47 47 … … 51 51 void BaseTrafficAgent::from_setting(const Setting& set) 52 52 { 53 step_ time=90;54 cycle_ time=80;53 step_length=90; 54 cycle_length=80; 55 55 56 56 bdm::Participant::from_setting(set);