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/Zlicin.cfg

    r903 r1026  
    22        { // agent 1 
    33        class = "BaseTrafficAgent"; 
    4           name = "495"; 
    5           sg = ( 
    6             { name = "VA"; 
    7               detectors = ( 
    8                         { name = "DVA1";  distance = 10;},  
    9               {name = "DVA";  distance = 20; } 
    10               ); 
    11             },  
    12             { name = "VB"; 
    13               detectors = (); 
    14               input = {}; 
    15               output = {}; 
    16             }); 
    17   input = ( // remote detectors  
    18     { 
    19       name = "601_DVAa"; 
    20                 distance = 100; 
    21       to_sg = ("VC","VD"); 
    22     }, 
    23     { 
    24       name = "601_DVA"; 
    25                 distance = 100; 
    26       to_sg = ("VC","VD"); 
    27     } 
    28   ); 
    29   output = ( //  
    30      { 
    31                 detectors = ("495_DVC"); 
    32       to = "601"; 
    33       } 
    34   ); 
    35  
    36   offset = 40; //s 
    37   moje_special=14; 
     4        name = "495"; 
     5        lanes = ( 
     6                        { sg="VA"; inputs = ("495_DVA1","495_DVB");  outputs= ("601_DVA"); input_distances=[30,30]; output_distances=[200]; alpha= [1.0 ]; queue="495_Q1";},  
     7                        { sg="VB"; inputs = ("495_DVA1","495_DVB");  outputs= ("601_DVB"); input_distances=[30,30]; output_distances=[200]; alpha= [1.0 ]; queue="495_Q2";} 
     8        ); 
     9        neighbours = ("601"); 
     10        offset = 10; //s 
     11        moje_special=14; 
    3812}, 
    3913{ //agent 2 
    4014        class = "BaseTrafficAgent"; 
    41   name = "601"; 
    42   sg = ( 
    43     { name = "VA"; 
    44       detectors = ( 
    45                 { name = "DVA"; distance = 10; },  
    46                  {name = "DVAa"; distance = 20; } 
    47       ); 
    48     },  
    49     { name = "VB"; 
    50       detectors = (); 
    51     } 
    52   ); 
    53    
    54   offset = 60; //s 
    55         input = (); 
    56         output = ({to="495"; detectors=("601_DVAa","601_DVA");}); 
     15        name = "601"; 
     16        lanes = ( 
     17                        { sg="VA"; inputs = ("601_DVA","601_DVB");  outputs= ("495_DVA"); input_distances=[30,30]; output_distances=[200]; alpha= [1.0 ]; queue="601_Q1";},  
     18                        { sg="VB"; inputs = ("601_DVC","601_DVD");  outputs= ("495_DVB"); input_distances=[30,30]; output_distances=[200]; alpha= [1.0 ]; queue="601_Q2";} 
     19        );   
     20        neighbours = ("495"); 
     21        offset = 40; 
     22 
    5723} 
     24 
    5825); 
    5926 
    60 logger = {class="memlog"; filename = "zlicin"; maxlen = 1000;}; 
     27logger = {class="memlog"; filename = "mujlog"; maxlen = 1000;}; 
     28 
     29 
     30 
    6131 
    6232system = { 
     
    7242        // length is 24 hours (24:00:00). 
    7343        stop_time = "01:00:00"; 
     44         
    7445}; 
     46 
     47//Number of recieve/broadcast calls before end of negotiation 
     48negotiation_cycles = 5;