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/main_loop.cpp

    r932 r1026  
    3636        // LOGGER 
    3737        shared_ptr<logger> L = UI::build <logger>( Cfg, "logger" ); 
    38         if (!L) {L=new stdlog();} // DEFAULT LOGGER <== poor choice, use better ones 
     38        if (!L) { 
     39                L=new stdlog(); // DEFAULT LOGGER <== poor choice, use better ones 
     40        }  
    3941 
    4042 
     
    105107                }  
    106108                while ((Queue.getLength()>0) && (cycle<max_cycles)); 
     109                if (cycle==max_cycles) { 
     110                        bdm_warning("Reached maximum number of cycles"); 
     111                } 
    107112 
    108113                for ( int i=0; i<Ags.length(); i++ ) {