SOLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
daisi::cpps::logical::Metrics Class Reference

Public Member Functions

 Metrics (daisi::util::Duration empty_travel_time, daisi::util::Duration loaded_travel_time, daisi::util::Duration action_time, daisi::util::Distance empty_travel_distance, daisi::util::Distance loaded_travel_distance)
 
void setMakespan (const daisi::util::Duration &makespan)
 
bool isStartTimeSet () const
 
void setStartTime (const daisi::util::Duration &start_time)
 
bool isExecutionStartTimeSet () const
 
void setExecutionStartTime (const daisi::util::Duration &start_time)
 
daisi::util::Duration getMakespan () const
 
daisi::util::Duration getTime () const
 
daisi::util::Duration getExecutionTime () const
 
daisi::util::Distance getDistance () const
 
Metrics operator- (const Metrics &other) const
 
Metrics operator+ (const Metrics &other) const
 
 SERIALIZE (empty_travel_time, loaded_travel_time, action_time, empty_travel_distance, loaded_travel_distance, makespan_, start_time_, execution_start_time_, start_time_set_, execution_start_time_set_, start_up_time)
 

Public Attributes

daisi::util::Duration empty_travel_time = 0.0
 
daisi::util::Duration loaded_travel_time = 0.0
 
daisi::util::Duration action_time = 0.0
 
daisi::util::Distance empty_travel_distance = 0.0
 
daisi::util::Distance loaded_travel_distance = 0.0
 
util::Duration start_up_time = 0.0
 

Static Public Attributes

static std::function< double(const Metrics &)> utility_function_
 

Friends

bool operator< (const Metrics &lhs, const Metrics &rhs)
 
bool operator<= (const Metrics &lhs, const Metrics &rhs)
 
bool operator> (const Metrics &lhs, const Metrics &rhs)
 
bool operator>= (const Metrics &lhs, const Metrics &rhs)
 
bool operator== (const Metrics &lhs, const Metrics &rhs)
 
bool operator!= (const Metrics &lhs, const Metrics &rhs)
 

Member Data Documentation

◆ utility_function_

std::function< double(const Metrics &)> daisi::cpps::logical::Metrics::utility_function_
static
Initial value:
= [](const Metrics &m) {
return -m.empty_travel_time;
}

The documentation for this class was generated from the following files: