Show
Ignore:
Timestamp:
05/14/10 01:35:51 (14 years ago)
Author:
ondrak
Message:

greenwave agents sending and receiving some expectations
very basic expected_output counting in Lane_Handler

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/doprava/traffic_agent.h

    r927 r941  
    107107                RV rv_queues; 
    108108                 
    109                 //! datalink from DS to output variables 
     109                //! datalink from DS to input variables 
    110110                datalink ds2inputs; 
    111111 
    112112                //! datalink from DS to output variables 
    113113                datalink ds2queues; 
    114                  
     114 
    115115                //! action description 
    116116                RV action_rv; 
     
    123123                 
    124124                Array<datalink> output2neighbour; 
     125 
     126                //! simulator's step length in seconds 
     127                int step_time; 
     128 
     129                //! lenght of cycle in seconds 
     130                int cycle_time; 
    125131                 
    126132        public: 
    127133                void validate(){ 
     134                        //TODO Tohle asi ne 
     135                        step_time=90; 
     136                        cycle_time=80; 
     137                         
    128138                        lanehs.set_length(lanes.length()); 
    129139                        for (int l=0; l<lanes.length(); l++){ 
     
    211221                        // copy data from global vector to sSGHandlers 
    212222                        ds2inputs.filldown(glob_dt, inputs); 
    213                         //copy data fro neighbours 
     223                        //copy data from neighbours 
    214224                        ds2queues.filldown(glob_dt, queues); 
    215225                        // copy sg_length ... and others... 
     
    224234                        ds2inputs.set_connection(rv_inputs, ds._drv()); 
    225235                        ds2queues.set_connection(rv_queues, ds._drv()); 
     236                         
    226237                        inputs.set_size(rv_inputs._dsize()); 
    227238                        action2ds.set_connection( ds._urv(), action_rv); 
     239 
    228240                } 
    229241