Struct vrp_core::models::solution::Activity [−][src]
pub struct Activity {
pub place: Place,
pub schedule: Schedule,
pub job: Option<Arc<Single>>,
pub commute: Option<Commute>,
}Expand description
Represents activity which is needed to be performed.
Fields
place: PlaceSpecifies activity details.
schedule: ScheduleSpecifies activity’s schedule including commute time.
job: Option<Arc<Single>>Specifies associated job. Empty if it has no association with a single job (e.g. tour start or end).
If single job is part of multi job, then original job can be received via retrieve_job method.
commute: Option<Commute>An extra commute time to the place.
Implementations
Creates an activity with a job.
Checks whether activity has given job.
Returns job if activity has it.