 |
vrpRouting
0.3
|
Go to the documentation of this file.
28 #ifndef INCLUDE_PROBLEM_TW_NODE_H_
29 #define INCLUDE_PROBLEM_TW_NODE_H_
195 #endif // INCLUDE_PROBLEM_TW_NODE_H_
TInterval window_length() const
Returns the length of time between the opening and closing.
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
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
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::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.
auto type() const
Returns the type of this node.
bool is_late_arrival(TTimestamp arrival_time) const
True when arrivalTime is after it closes.
void demand(Amount value)
Sets the demand value to a new value.
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?
bool is_on_time(TTimestamp arrival_time) const
True when arrivalTime in the time window.
Amount m_demand
The demand for the Node.
Time window attributes of a node.
int64_t order() const
Returns the order to which it belongs.
Tw_node()=delete
Creating a Tw_node is not permitted.
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.
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
friend std::ostream & operator<<(std::ostream &, const Tw_node &)
Print the contents of a Twnode object.
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.
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