Module: RSMP::TLC::Modules::TrafficData
- Included in:
- TrafficController
- Defined in:
- lib/rsmp/tlc/modules/traffic_data.rb
Overview
Traffic counting data collection for TLC Handles aggregate traffic counting status for all detectors
Instance Method Summary collapse
-
#handle_s0205(_status_code, status_name = nil, _options = {}) ⇒ Object
S0205 - Traffic Counting: Number of vehicles (aggregate).
-
#handle_s0206(_status_code, status_name = nil, _options = {}) ⇒ Object
S0206 - Traffic Counting: Vehicle speed (aggregate).
-
#handle_s0207(_status_code, status_name = nil, _options = {}) ⇒ Object
S0207 - Traffic Counting: Occupancy (aggregate).
-
#handle_s0208(_status_code, status_name = nil, _options = {}) ⇒ Object
S0208 - Traffic Counting: Number of vehicles by classification (aggregate).
Instance Method Details
#handle_s0205(_status_code, status_name = nil, _options = {}) ⇒ Object
S0205 - Traffic Counting: Number of vehicles (aggregate)
8 9 10 11 12 13 14 15 |
# File 'lib/rsmp/tlc/modules/traffic_data.rb', line 8 def handle_s0205(_status_code, status_name = nil, = {}) case status_name when 'start' TrafficControllerSite.make_status clock.to_s when 'vehicles' TrafficControllerSite.make_status 0 end end |
#handle_s0206(_status_code, status_name = nil, _options = {}) ⇒ Object
S0206 - Traffic Counting: Vehicle speed (aggregate)
18 19 20 21 22 23 24 25 |
# File 'lib/rsmp/tlc/modules/traffic_data.rb', line 18 def handle_s0206(_status_code, status_name = nil, = {}) case status_name when 'start' TrafficControllerSite.make_status clock.to_s when 'speed' TrafficControllerSite.make_status 0 end end |
#handle_s0207(_status_code, status_name = nil, _options = {}) ⇒ Object
S0207 - Traffic Counting: Occupancy (aggregate)
28 29 30 31 32 33 34 35 |
# File 'lib/rsmp/tlc/modules/traffic_data.rb', line 28 def handle_s0207(_status_code, status_name = nil, = {}) case status_name when 'start' TrafficControllerSite.make_status clock.to_s when 'occupancy' TrafficControllerSite.make_status 0 end end |
#handle_s0208(_status_code, status_name = nil, _options = {}) ⇒ Object
S0208 - Traffic Counting: Number of vehicles by classification (aggregate)
38 39 40 41 42 43 44 45 |
# File 'lib/rsmp/tlc/modules/traffic_data.rb', line 38 def handle_s0208(_status_code, status_name = nil, = {}) case status_name when 'start' TrafficControllerSite.make_status clock.to_s when 'P', 'PS', 'L', 'LS', 'B', 'SP', 'MC', 'C', 'F' TrafficControllerSite.make_status 0 end end |