PGROUTING  2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
5 Mail: vicky_vergara@hotmail.com
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 
31 #ifdef __cplusplus
32 
33 #include <cstddef>
34 
35 #else // __cplusplus
36 
37 // for bool
38 #ifdef __GNUC__
39 #pragma GCC diagnostic ignored "-pedantic"
40 #endif
41 
42 #include <postgres.h>
43 
44 #ifdef __GNUC__
45 #pragma GCC diagnostic pop
46 #endif
47 
48 // For NULL & size_t
49 #include <stdlib.h>
50 
51 
52 #endif // __cplusplus
53 
54 // For int64_t etc
55 #include <stdint.h>
56 
57 /*
58  * its with either (foo_x, foo_y) pairs for eucledian or with foo_node_id (for matrix)
59  */
60 typedef struct {
61  int64_t id;
62  double capacity;
63  double speed;
64 
65  double start_x;
66  double start_y;
67  int64_t start_node_id;
68 
69  int64_t cant_v;
70 
71  double start_open_t;
72  double start_close_t;
74 
75  double end_x;
76  double end_y;
77  int64_t end_node_id;
78 
79  double end_open_t;
80  double end_close_t;
81  double end_service_t;
82 } Vehicle_t;
83 
84 
85 #endif // INCLUDE_C_TYPES_PICKDELIVER_VEHICLE_T_H_
double capacity
Definition: vehicle_t.h:62
double end_service_t
Definition: vehicle_t.h:81
double start_open_t
Definition: vehicle_t.h:71
double end_close_t
Definition: vehicle_t.h:80
double end_open_t
Definition: vehicle_t.h:79
double start_y
Definition: vehicle_t.h:66
double start_close_t
Definition: vehicle_t.h:72
int64_t cant_v
Definition: vehicle_t.h:69
double start_service_t
Definition: vehicle_t.h:73
double end_x
Definition: vehicle_t.h:75
double end_y
Definition: vehicle_t.h:76
int64_t end_node_id
Definition: vehicle_t.h:77
double start_x
Definition: vehicle_t.h:65
double speed
Definition: vehicle_t.h:63
int64_t start_node_id
Definition: vehicle_t.h:67
int64_t id
Definition: vehicle_t.h:61