osurs  0.0.1
Data Structures | Macros | Typedefs
types.h File Reference

Data types of osurs. More...

#include <osurs/ds.h>
#include <stdlib.h>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  node_t
 A node. More...
 
struct  stop_t
 A stop. More...
 
struct  trip_t
 A trip. More...
 
struct  route_t
 A route. More...
 
struct  vehicle_t
 A vehicle. More...
 
struct  composition_t
 A composition. More...
 
struct  network_t
 A network. More...
 
struct  connection_t
 A connection. More...
 
struct  reservation_t
 A reservation. More...
 
struct  seat_t
 A seat. More...
 
struct  seat_collection_t
 A seat collection. More...
 

Macros

#define MINUTES   60
 
#define HOURS   3600
 

Typedefs

typedef struct node_t Node
 A node. More...
 
typedef struct stop_t Stop
 A stop. More...
 
typedef struct trip_t Trip
 A trip. More...
 
typedef struct route_t Route
 A route. More...
 
typedef struct vehicle_t Vehicle
 A vehicle. More...
 
typedef struct composition_t Composition
 A composition. More...
 
typedef struct network_t Network
 A network. More...
 
typedef struct connection_t Connection
 A connection. More...
 
typedef struct reservation_t Reservation
 A reservation. More...
 
typedef struct seat_t Seat
 A seat. More...
 
typedef struct seat_collection_t SeatCollection
 A seat collection. More...
 

Detailed Description

Data types of osurs.

All data types used by osurs are declared and defined here.

Date
: 2022-08-22
Author
: Merlin Unterfinger

Typedef Documentation

◆ Composition

typedef struct composition_t Composition

A composition.

A composition reflects a combination of containers / groups with au defined seat capacity.

◆ Connection

typedef struct connection_t Connection

A connection.

A connection is a trip between two nodes that is reachable in time.

◆ Network

typedef struct network_t Network

A network.

A network consists of nodes where vehicles stop and passengers can get on and off.

◆ Node

typedef struct node_t Node

A node.

A node is a stop location used by different routes.

◆ Reservation

typedef struct reservation_t Reservation

A reservation.

A reservation is a booked connection. The booked seats have to be smaller or equal to the available seats.

◆ Route

typedef struct route_t Route

A route.

A route is a group of trips, which defines the route through the node network using stops. A route stores the order in which the nodes are approached by a vehicle in a chain of stops.

◆ Seat

typedef struct seat_t Seat

A seat.

A seat contains an array of reservations.

◆ SeatCollection

A seat collection.

The seat collection represents multiple seats over which the reservations were distributed/optimized.

◆ Stop

typedef struct stop_t Stop

A stop.

A stop is a stop location on a trip pointing on a node in the network. Each stop contains information about which stop is next and how long it takes to reach it.

◆ Trip

typedef struct trip_t Trip

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.

◆ Vehicle

typedef struct vehicle_t Vehicle

A vehicle.

A vehicle consists of an identifier and vehicle composition.