Struct vrp_core::models::problem::Fleet[][src]

pub struct Fleet {
    pub drivers: Vec<Arc<Driver>>,
    pub vehicles: Vec<Arc<Vehicle>>,
    pub profiles: Vec<Profile>,
    pub actors: Vec<Arc<Actor>>,
    pub groups: HashMap<usize, HashSet<Arc<Actor>>>,
}

Represents available resources to serve jobs.

Fields

drivers: Vec<Arc<Driver>>

All fleet drivers.

vehicles: Vec<Arc<Vehicle>>

All fleet vehicles.

profiles: Vec<Profile>

All fleet profiles.

actors: Vec<Arc<Actor>>

All fleet actors.

groups: HashMap<usize, HashSet<Arc<Actor>>>

A grouped actors.

Implementations

impl Fleet[src]

pub fn new(
    drivers: Vec<Arc<Driver>>,
    vehicles: Vec<Arc<Vehicle>>,
    group_key: ActorGroupKeyFn
) -> Fleet
[src]

Creates a new instance of Fleet.

Auto Trait Implementations

impl !RefUnwindSafe for Fleet

impl Send for Fleet

impl Sync for Fleet

impl Unpin for Fleet

impl !UnwindSafe for Fleet

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,