PGROUTING  3.2
general_vehicle_orders_t.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: general_vehicle_orders_t.h
3 
4 Copyright (c) 2017 Celia Virginia Vergara Castillo
6 
7 ------
8 
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 
23  ********************************************************************PGR-GNU*/
26 #ifndef INCLUDE_C_TYPES_PICKDELIVER_GENERAL_VEHICLE_ORDERS_T_H_
27 #define INCLUDE_C_TYPES_PICKDELIVER_GENERAL_VEHICLE_ORDERS_T_H_
28 #pragma once
29 
30 /* for int64_t */
31 #ifdef __cplusplus
32 # include <cstdint>
33 #else
34 # include <stdint.h>
35 #endif
36 
37 /*
38  OUT seq INTEGER, done in the .c code
39  OUT vehicle_seq INTEGER,
40  OUT vehicle_id INTEGER,
41  OUT order_id BIGINT,
42  OUT travelTime FLOAT,
43  OUT arrivalTime FLOAT,
44  OUT waitTime FLOAT,
45  OUT serviceTime FLOAT,
46  OUT departureTime FLOAT,
47  */
48 
49 typedef struct {
51  int64_t vehicle_id;
52  int stop_seq;
53  int64_t order_id;
54  int64_t stop_id;
55  int stop_type;
56  double cargo;
57  double travelTime;
58  double arrivalTime;
59  double waitTime;
60  double serviceTime;
61  double departureTime;
63 
64 /*************************************************************************/
65 
66 #endif // INCLUDE_C_TYPES_PICKDELIVER_GENERAL_VEHICLE_ORDERS_T_H_
General_vehicle_orders_t::waitTime
double waitTime
Definition: general_vehicle_orders_t.h:59
General_vehicle_orders_t::departureTime
double departureTime
Definition: general_vehicle_orders_t.h:61
General_vehicle_orders_t::serviceTime
double serviceTime
Definition: general_vehicle_orders_t.h:60
General_vehicle_orders_t::arrivalTime
double arrivalTime
Definition: general_vehicle_orders_t.h:58
General_vehicle_orders_t::stop_seq
int stop_seq
Definition: general_vehicle_orders_t.h:52
General_vehicle_orders_t::cargo
double cargo
Definition: general_vehicle_orders_t.h:56
General_vehicle_orders_t
Definition: general_vehicle_orders_t.h:49
General_vehicle_orders_t::vehicle_id
int64_t vehicle_id
Definition: general_vehicle_orders_t.h:51
General_vehicle_orders_t::travelTime
double travelTime
Definition: general_vehicle_orders_t.h:57
General_vehicle_orders_t::vehicle_seq
int vehicle_seq
Definition: general_vehicle_orders_t.h:50
General_vehicle_orders_t::order_id
int64_t order_id
Definition: general_vehicle_orders_t.h:53
General_vehicle_orders_t::stop_type
int stop_type
Definition: general_vehicle_orders_t.h:55
General_vehicle_orders_t::stop_id
int64_t stop_id
Definition: general_vehicle_orders_t.h:54