Trait vrp_core::models::CoreStateKeys
source · pub trait CoreStateKeys {
// Required methods
fn get_schedule_keys(&self) -> Option<&ScheduleKeys>;
fn get_capacity_keys(&self) -> Option<&CapacityKeys>;
fn get_heuristic_keys(&self) -> Option<&HeuristicKeys>;
}
Expand description
Keeps track of state keys used in core which can be useful in other contexts too.
For example, transport keys provide information about total duration/distance traveled by vehicle which can be used in heuristic context to compare different routes.
Required Methods§
sourcefn get_schedule_keys(&self) -> Option<&ScheduleKeys>
fn get_schedule_keys(&self) -> Option<&ScheduleKeys>
Get state keys for scheduling.
sourcefn get_capacity_keys(&self) -> Option<&CapacityKeys>
fn get_capacity_keys(&self) -> Option<&CapacityKeys>
Gets state keys for capacity feature.
sourcefn get_heuristic_keys(&self) -> Option<&HeuristicKeys>
fn get_heuristic_keys(&self) -> Option<&HeuristicKeys>
Gets state keys for heuristic.