vrpRouting  0.3
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_VEHICLE_T_H_
27 #define INCLUDE_C_TYPES_VEHICLE_T_H_
28 #pragma once
29 
30 #include "c_types/typedefs.h"
31 
50 struct Vehicle_t {
51  Id id;
55  Id *stops;
56  size_t stops_size;
64 
71 };
72 
73 
74 #endif // INCLUDE_C_TYPES_VEHICLE_T_H_
Vehicle_t::start_node_id
Id start_node_id
Stops size.
Definition: vehicle_t.h:58
Vehicle_t::stops
Id * stops
Number of vehicles with same description.
Definition: vehicle_t.h:55
Vehicle_t::end_node_id
Id end_node_id
Definition: vehicle_t.h:65
Vehicle_t
vehicles's attributes
Definition: vehicle_t.h:50
Vehicle_t::start_open_t
TTimestamp start_open_t
Start node's identifier.
Definition: vehicle_t.h:59
Vehicle_t::end_open_t
TTimestamp end_open_t
End node's identifier.
Definition: vehicle_t.h:66
Speed
double Speed
Definition: typedefs.h:76
Vehicle_t::start_y
Coordinate start_y
Definition: vehicle_t.h:63
Id
int64_t Id
Definition: typedefs.h:78
Vehicle_t::start_x
Coordinate start_x
Start service duration.
Definition: vehicle_t.h:62
typedefs.h
Vehicle_t::start_close_t
TTimestamp start_close_t
Start open time.
Definition: vehicle_t.h:60
Vehicle_t::speed
Speed speed
Vehicle's capacity.
Definition: vehicle_t.h:53
TTimestamp
int64_t TTimestamp
Definition: typedefs.h:71
Coordinate
double Coordinate
Definition: typedefs.h:73
Vehicle_t::end_close_t
TTimestamp end_close_t
End open time.
Definition: vehicle_t.h:67
Vehicle_t::capacity
PAmount capacity
Vehicle's identifier.
Definition: vehicle_t.h:52
Vehicle_t::end_y
Coordinate end_y
Definition: vehicle_t.h:70
Vehicle_t::cant_v
PAmount cant_v
Definition: vehicle_t.h:54
PAmount
uint32_t PAmount
Definition: typedefs.h:75
TInterval
int64_t TInterval
Definition: typedefs.h:72
Vehicle_t::stops_size
size_t stops_size
Stops.
Definition: vehicle_t.h:56
Vehicle_t::end_x
Coordinate end_x
End service time.
Definition: vehicle_t.h:69
Vehicle_t::id
Id id
Definition: vehicle_t.h:51
Vehicle_t::end_service_t
TInterval end_service_t
End close time.
Definition: vehicle_t.h:68
Vehicle_t::start_service_t
TInterval start_service_t
Start close time.
Definition: vehicle_t.h:61