PGROUTING  3.2
vehicle_t.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: vehicle_t.h
3 
4 Copyright (c) 2015 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_VEHICLE_T_H_
27 #define INCLUDE_C_TYPES_PICKDELIVER_VEHICLE_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  * its with either (foo_x, foo_y) pairs for euclidean or with foo_node_id (for matrix)
39  */
40 typedef struct {
41  int64_t id;
42  double capacity;
43  double speed;
44 
45  double start_x;
46  double start_y;
47  int64_t start_node_id;
48 
49  int64_t cant_v;
50 
51  double start_open_t;
52  double start_close_t;
54 
55  double end_x;
56  double end_y;
57  int64_t end_node_id;
58 
59  double end_open_t;
60  double end_close_t;
61  double end_service_t;
62 } Vehicle_t;
63 
64 
65 #endif // INCLUDE_C_TYPES_PICKDELIVER_VEHICLE_T_H_
Vehicle_t::capacity
double capacity
Definition: vehicle_t.h:42
Vehicle_t::end_service_t
double end_service_t
Definition: vehicle_t.h:61
Vehicle_t::start_open_t
double start_open_t
Definition: vehicle_t.h:51
Vehicle_t::end_close_t
double end_close_t
Definition: vehicle_t.h:60
Vehicle_t::start_y
double start_y
Definition: vehicle_t.h:46
Vehicle_t::end_open_t
double end_open_t
Definition: vehicle_t.h:59
Vehicle_t
Definition: vehicle_t.h:40
Vehicle_t::start_close_t
double start_close_t
Definition: vehicle_t.h:52
Vehicle_t::end_x
double end_x
Definition: vehicle_t.h:55
Vehicle_t::cant_v
int64_t cant_v
Definition: vehicle_t.h:49
Vehicle_t::end_node_id
int64_t end_node_id
Definition: vehicle_t.h:57
Vehicle_t::start_service_t
double start_service_t
Definition: vehicle_t.h:53
Vehicle_t::start_x
double start_x
Definition: vehicle_t.h:45
Vehicle_t::end_y
double end_y
Definition: vehicle_t.h:56
Vehicle_t::speed
double speed
Definition: vehicle_t.h:43
Vehicle_t::start_node_id
int64_t start_node_id
Definition: vehicle_t.h:47
Vehicle_t::id
int64_t id
Definition: vehicle_t.h:41