|
PGROUTING
3.2
|
Go to the documentation of this file.
28 #ifndef INCLUDE_VRP_ORDER_H_
29 #define INCLUDE_VRP_ORDER_H_
47 Order(
size_t p_id, int64_t p_idx,
188 #endif // INCLUDE_VRP_ORDER_H_
Identifiers< size_t > subsetI(const Identifiers< size_t > &I) const
bool is_valid(double speed) const
validate a pickup/delivery order
Identifiers< size_t > subsetJ(const Identifiers< size_t > &J) const
Get a subset of the orders that can be placed after this order.
Vehicle_node m_delivery
The delivery node identifier.
Identifiers< size_t > m_compatibleI
Stores all the orders that can be placed before this order.
void set_compatibles(const Order order, double speed)
Extend Tw_node to evaluate the vehicle at node level.
Vehicle_node m_pickup
The pick up node identifier.
const Vehicle_node & pickup() const
The delivery node identifier.
const Vehicle_node & delivery() const
The delivery node identifier.
friend std::ostream & operator<<(std::ostream &, const Order &)
Book keeping class for swapping orders between vehicles.
Identifiers< size_t > m_compatibleJ
Stores all the orders that can be placed after this order.
bool isCompatibleIJ(const Order &I, double speed) const
Can order I be placed before this order?
Order(size_t p_id, int64_t p_idx, const Vehicle_node &p_pickup, const Vehicle_node &p_deliver)