Show
Ignore:
Timestamp:
06/02/10 00:13:50 (14 years ago)
Author:
ondrak
Message:

zlicin.cfg now compatible with BaseTrafficAgent?.
main_loop shows warning, if reaches max number of negotiation cycles
step_time and cycle_time renamed to step_length and cycle_length
GreenWaveTrafficAgent? works, but queues are not from Aimsun yet.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/doprava/traffic_agent.cpp

    r986 r1026  
    3131        } 
    3232 
    33         exp_output=last_inputs*(green_time/agent->step_time); 
     33        exp_output=last_inputs*(green_time/agent->step_length); 
    3434 
    3535        //////// 
     
    4343         
    4444        for (int i=0;i<inputs.length();i+=2) { 
    45                 density+=inputs(i)/agent->step_time; 
     45                density+=inputs(i)/agent->step_length; 
    4646        } 
    4747 
     
    5151void BaseTrafficAgent::from_setting(const Setting& set) 
    5252{ 
    53         step_time=90; 
    54         cycle_time=80; 
     53        step_length=90; 
     54        cycle_length=80; 
    5555 
    5656        bdm::Participant::from_setting(set);