|
navit
0.5.3-trunk
|
A traffic event. More...
#include <traffic.h>
Data Fields | |
| enum event_class | event_class |
| enum event_type | type |
| int | length |
| int | speed |
| struct quantifier * | quantifier |
| int | si_count |
| struct traffic_suppl_info ** | si |
A traffic event.
An event refers to a condition, its cause or its effect.
| enum event_class traffic_event::event_class |
The event class (generic category).
Referenced by traffic_event_is_valid(), traffic_event_new(), traffic_message_dump_to_stderr(), and traffic_message_parse_events().
| int traffic_event::length |
The length of the affected route in meters.
Referenced by traffic_event_new(), and traffic_message_dump_to_stderr().
| struct quantifier* traffic_event::quantifier |
Additional quantifier for events allowing this. Data type and meaning depends on the event type.
Referenced by traffic_event_destroy(), traffic_event_new(), and traffic_message_parse_events().
| struct traffic_suppl_info** traffic_event::si |
Points to an array of pointers to supplementary information items.
Referenced by traffic_event_add_suppl_info(), traffic_event_destroy(), traffic_event_get_suppl_info(), traffic_event_is_valid(), traffic_event_new(), traffic_message_dump_to_stderr(), and traffic_message_parse_events().
| int traffic_event::si_count |
Number of supplementary information items in si_count.
Referenced by traffic_event_add_suppl_info(), traffic_event_destroy(), traffic_event_is_valid(), traffic_event_new(), traffic_message_dump_to_stderr(), and traffic_message_parse_events().
| int traffic_event::speed |
The speed in km/h at which vehicles can expect to pass through the affected stretch of road (either a temporary speed limit or average speed in practice, whichever is less), INT_MAX if not set or unknown.
Referenced by traffic_event_new(), traffic_message_dump_to_stderr(), and traffic_message_parse_events().
| enum event_type traffic_event::type |
The event type, which can be mapped to a string to be displayed to the user.
Referenced by traffic_event_is_valid(), traffic_event_new(), traffic_message_dump_to_stderr(), and traffic_message_parse_events().