Traffic Light Controller Traffic Data
Tests
- Traffic data classification for a single detector is read with S0204
- Traffic data classification for all detectors is read with S0208
- Traffic data number of vehicles for a single detector is read with S0201
- Traffic data number of vehicles for all detectors is read with S0205
- Traffic data occupancy for a single detector is read with S0203
- Traffic data occupancy for all detectors is read with S0207
- Traffic data vehicle speed for a single detector is read with S0202
- Traffic data vehicle speed for all detectors is read with S0206
Traffic data classification for a single detector is read with S0204
Verify status S0204 traffic counting: classification
- Given the site is connected
- Request status
- Expect status response before timeout
View Source
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "traffic counting: classification",
{ S0204: [
:starttime,
:P,
:PS,
:L,
:LS,
:B,
:SP,
:MC,
:C,
:F
] },
Validator.get_config('components','detector_logic').keys.first
end
Traffic data classification for all detectors is read with S0208
Verify status S0208 traffic counting: classification
- Given the site is connected
- Request status
- Expect status response before timeout
View Source
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "traffic counting: classification",
{ S0208: [
:start,
:P,
:PS,
:L,
:LS,
:B,
:SP,
:MC,
:C,
:F
] }
end
Traffic data number of vehicles for a single detector is read with S0201
Verify status S0201 traffic counting: number of vehicles
- Given the site is connected
- Request status
- Expect status response before timeout
View Source
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "traffic counting: number of vehicles",
{ S0201: [:starttime,:vehicles] },
Validator.get_config('components','detector_logic').keys.first
end
Traffic data number of vehicles for all detectors is read with S0205
Verify status S0205 traffic counting: number of vehicles
- Given the site is connected
- Request status
- Expect status response before timeout
View Source
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "traffic counting: number of vehicles",
{ S0205: [:start,:vehicles] }
end
Traffic data occupancy for a single detector is read with S0203
Verify status S0203 traffic counting: occupancy
- Given the site is connected
- Request status
- Expect status response before timeout
View Source
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "traffic counting: occupancy",
{ S0203: [:starttime,:occupancy] },
Validator.get_config('components','detector_logic').keys.first
end
Traffic data occupancy for all detectors is read with S0207
Verify status S0207 traffic counting: occupancy
- Given the site is connected
- Request status
- Expect status response before timeout
View Source
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "traffic counting: occupancy",
{ S0207: [:start,:occupancy] }
end
Traffic data vehicle speed for a single detector is read with S0202
Verify status S0202 traffic counting: vehicle speed
- Given the site is connected
- Request status
- Expect status response before timeout
View Source
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "traffic counting: vehicle speed",
{ S0202: [:starttime,:speed] },
Validator.get_config('components','detector_logic').keys.first
end
Traffic data vehicle speed for all detectors is read with S0206
Verify status S0206 traffic counting: vehicle speed
- Given the site is connected
- Request status
- Expect status response before timeout
View Source
Validator::Site.connected do |task,supervisor,site|
request_status_and_confirm site, "traffic counting: vehicle speed",
{ S0206: [:start,:speed] }
end