osurs  0.0.1
Data Fields
trip_t Struct Reference

A trip. More...

#include <types.h>

Collaboration diagram for trip_t:
Collaboration graph
[legend]

Data Fields

char * id
 
int departure
 
int arrival
 
struct vehicle_tvehicle
 
struct trip_tnext
 
struct route_troute
 
ArrayListreservations
 

Detailed Description

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.

Field Documentation

◆ arrival

int trip_t::arrival

Arrival time in seconds after midnight of the trip at the last stop of the route.

◆ departure

int trip_t::departure

Departure time in seconds after midnight of the trip at the first stop of the route.

◆ id

char* trip_t::id

Identifier.

◆ next

struct trip_t* trip_t::next

The next trip starting after the current one.

◆ reservations

ArrayList* trip_t::reservations

Reservation in the network.

◆ route

struct route_t* trip_t::route

The route the trip corresponds to.

◆ vehicle

struct vehicle_t* trip_t::vehicle

The vehicle used to travel along the route with this trip / departure.


The documentation for this struct was generated from the following file: