Resource: Vehicle
No name, it is stored as a map key within the Network.
JSON representation |
---|
{ "name": string, "capacities": [ { object ( |
Fields | |
---|---|
name |
Identifier. Cannot be updated. |
capacities[] |
Optional. Vehicle characteristics. |
cost |
Required. Cost for using the vehicle. These are functions of one argument: the distance the vehicle travels, the weight the vehicle transports, the number of pallets the vehicle transports. These functions account for maintenance, fuel, and handling costs. These cost may include an upfront cost (paid once the vehicle is used, mostly useful for subcontracting). |
pricing |
Optional. Price to be paid by the paying party, only if the vehicle is being used in a generated line (i.e. not part of the input network). |
allowed |
Required. Whether this vehicle can be used for generated lines. If set to |
vehicle |
Optional. Forced positions for the current vehicle, along with times. For instance, use entries to model the fact that a vehicle that starts or ends at a given hub. |
VehiclePositionConstraint
Constraint on the position of a vehicle.
JSON representation |
---|
{
"time": {
object ( |
Fields | |
---|---|
time |
Time of the constraint. |
hub |
Hub of the constraint. |
Methods |
|
---|---|
|
Creates a Vehicle. |
|
Deletes a Vehicle. |
|
Gets the details of a Vehicle. |
|
Lists the Vehicles. |
|
Makes a vehicle available. |
|
Makes a vehicle unavailable. |
|
Updates a Vehicle. |