Struct vrp_core::models::solution::Activity [−][src]
Represents activity which is needed to be performed.
Fields
place: PlaceSpecifies activity details.
schedule: ScheduleSpecifies activity’s schedule: actual arrival and departure time.
job: Option<Arc<Single>>Specifies job relation. Empty if it has no relation to single job (e.g. tour start or end). If single job is part of multi job, then original job can be received via its dimens.
Implementations
impl Activity[src]
impl Activity[src]pub fn new_with_job(job: Arc<Single>) -> Self[src]
Creates an activity with a job.
pub fn deep_copy(&self) -> Self[src]
Creates a deep copy of Activity.
pub fn has_same_job(&self, job: &Job) -> bool[src]
Checks whether activity has given job.
pub fn retrieve_job(&self) -> Option<Job>[src]
Returns job if activity has it.
Auto Trait Implementations
impl !RefUnwindSafe for Activity
impl !RefUnwindSafe for Activityimpl !UnwindSafe for Activity
impl !UnwindSafe for Activity