Struct vrp_core::models::solution::Activity [−][src]
Expand description
Represents activity which is needed to be performed.
Fields
place: PlaceExpand description
Specifies activity details.
schedule: ScheduleExpand description
Specifies activity’s schedule: actual arrival and departure time.
job: Option<Arc<Single>>Expand description
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]
pub fn new_with_job(job: Arc<Single>) -> Self[src]Creates an activity with a job.
pub fn has_same_job(&self, job: &Job) -> bool[src]
pub fn has_same_job(&self, job: &Job) -> bool[src]Checks whether activity has given job.
pub fn retrieve_job(&self) -> Option<Job>[src]
pub fn retrieve_job(&self) -> Option<Job>[src]Returns job if activity has it.
Auto Trait Implementations
impl !RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl !UnwindSafe for Activity
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,