 |
vrpRouting
0.3
|
Go to the documentation of this file.
67 if (
m_type ==
kStart)
return (std::numeric_limits<TTimestamp>::max)();
82 if (
m_type ==
kStart)
return (std::numeric_limits<TTimestamp>::max)();
174 case kEnd:
return "E";
175 case kDump:
return "D";
176 case kLoad:
return "L";
179 default:
return "UNKNOWN";
259 if (&other ==
this)
return true;
266 &&
id() == other.
id()
319 m_opens(data.pick_open_t),
320 m_closes(data.pick_close_t),
321 m_service_time(data.pick_service_t),
322 m_demand(data.demand),
343 m_opens(data.start_open_t),
344 m_closes(data.start_close_t),
345 m_service_time(data.start_service_t),
Id deliver_node_id
Deliver y coordinate: used in stand alone program for benchmarks.
TInterval travel_time(Id, Id, TTimestamp) const
retrun the travel time times when using the time dependant multipliers
@ kDump
dump site, empties truck
int64_t m_order
order to which it belongs (idx)
bool is_delivery() const
Is the node a valid order's delivery node.
TTimestamp arrival_j_opens_i(const Tw_node &I, Speed=1.0) const
arrival time at This node, when arrived at I at opening time TODO refine description
TTimestamp m_closes
closing time of the node
int64_t id() const
get the original id
Amount demand() const
Returns the demand associated with this node.
bool is_partially_compatible_IJ(const Tw_node &I, Speed=1.0) const
can arrive to this after visiting as late as possible I? TODO refine description
TTimestamp closes() const
Returns the closing time.
bool operator==(const Tw_node &rhs) const
equality operator
TTimestamp deliver_close_t
Deliver open time.
bool is_partially_waitTime_compatible_IJ(const Tw_node &I, Speed=1.0) const
can arrive to this after visiting as late as possible I? TODO refine description
std::ostream & operator<<(std::ostream &log, const Order &order)
Prints:
#define pgassert(expr)
Uses the standard assert syntax.
std::string type_str() const
returns a string code of the kind of node
TInterval service_time() const
Returns the service time for this node.
bool is_dump() const
Is the node a valid vehicle's dumping node.
TTimestamp end_open_t
End node's identifier.
auto type() const
Returns the type of this node.
bool is_late_arrival(TTimestamp arrival_time) const
True when arrivalTime is after it closes.
@ kLoad
load site, fills the truck
size_t idx() const
get the internal index
bool is_pickup() const
Is the node a valid order's pickup node.
bool is_compatible_IJ(const Tw_node &I, Speed=1.0) const
is possible to arrive to this after visiting other?
An assert functionality that uses C++ throw().
Amount m_demand
The demand for the Node.
Time window attributes of a node.
Tw_node()=delete
Creating a Tw_node is not permitted.
TTimestamp deliver_open_t
Deliver node identifier.
TInterval deliver_service_t
Deliver close time.
TTimestamp arrival_j_closes_i(const Tw_node &I, Speed=1.0) const
arrival time at This node, when arrived at I at closing time TODO refine description
bool is_end() const
Is the node a valid vehicle's ending node.
TTimestamp end_close_t
End open time.
bool is_waitTime_compatible_IJ(const Tw_node &I, Speed=1.0) const
can arrive to this after visiting as late as possible I? TODO refine description
static const Matrix * m_time_matrix_ptr
TInterval m_service_time
time it takes to be served
Class that stores the information about identifiers.
bool is_load() const
Is the node a valid vehicle's loading node.
bool is_early_arrival(TTimestamp arrival_time) const
True when arrivalTime is before it opens.
bool is_tight_compatible_IJ(const Tw_node &I, Speed=1.0) const
can arrive to this after visiting as late as possible I? TODO refine description
TInterval travel_time_to(const Tw_node &, TTimestamp, Speed=1.0) const
travel time to other node.
TTimestamp opens() const
Returns the opening time.
TInterval end_service_t
End close time.
void reset_id(int64_t)
change the original id
bool is_start() const
Is the node a valid vehicle's starting node.
bool is_valid() const
is the node valid?
NodeType m_type
The kind of Node.
TTimestamp m_opens
opening time of the node