osurs
0.0.1
|
A trip. More...
#include <types.h>
Data Fields | |
char * | id |
int | departure |
int | arrival |
struct vehicle_t * | vehicle |
struct trip_t * | next |
struct route_t * | route |
ArrayList * | reservations |
A trip.
A trip is a sequence of two or more stop nodes that start at specific time on a given route. Trips indicate the departure times at which a vehicle leaves from the route's root stop. Vehicle information such as capacity and reservations are stored at the trip level.
int trip_t::arrival |
Arrival time in seconds after midnight of the trip at the last stop of the route.
int trip_t::departure |
Departure time in seconds after midnight of the trip at the first stop of the route.
char* trip_t::id |
Identifier.
struct trip_t* trip_t::next |
The next trip starting after the current one.
ArrayList* trip_t::reservations |
Reservation in the network.
struct route_t* trip_t::route |
The route the trip corresponds to.
struct vehicle_t* trip_t::vehicle |
The vehicle used to travel along the route with this trip / departure.