public static class VehicleTypeImpl.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
VehicleTypeImpl.Builder |
addCapacityDimension(int dimIndex,
int dimVal)
Adds a capacity dimension.
|
VehicleTypeImpl |
build()
Builds the vehicle-type.
|
static VehicleTypeImpl.Builder |
newInstance(String id) |
VehicleTypeImpl.Builder |
setCapacityDimensions(Capacity capacity)
Sets capacity dimensions.
|
VehicleTypeImpl.Builder |
setCostPerDistance(double perDistance)
Sets the cost per distance unit, for instance € per meter.
|
VehicleTypeImpl.Builder |
setCostPerServiceTime(double perServiceTime) |
VehicleTypeImpl.Builder |
setCostPerTime(double perTime)
Deprecated.
use .setCostPerTransportTime(..) instead
|
VehicleTypeImpl.Builder |
setCostPerTransportTime(double perTime)
Sets cost per time unit, for instance € per second.
|
VehicleTypeImpl.Builder |
setCostPerWaitingTime(double perWaitingTime)
Sets cost per waiting time unit, for instance € per second.
|
VehicleTypeImpl.Builder |
setFixedCost(double fixedCost)
Sets the fixed costs of the vehicle-type.
|
VehicleTypeImpl.Builder |
setMaxVelocity(double inMeterPerSeconds)
Sets the maximum velocity this vehicle-type can go [in meter per
seconds].
|
VehicleTypeImpl.Builder |
setProfile(String profile) |
VehicleTypeImpl.Builder |
setUserData(Object userData)
Sets user specific domain data associated with the object.
|
public static VehicleTypeImpl.Builder newInstance(String id)
public VehicleTypeImpl.Builder setUserData(Object userData)
The user data is a black box for the framework, it only stores it, but never interacts with it in any way.
userData - any object holding the domain specific user data
associated with the object.public VehicleTypeImpl.Builder setMaxVelocity(double inMeterPerSeconds)
inMeterPerSeconds - IllegalArgumentException - if velocity is smaller than zeropublic VehicleTypeImpl.Builder setFixedCost(double fixedCost)
by default it is 0.
fixedCost - IllegalArgumentException - if fixedCost is smaller than zeropublic VehicleTypeImpl.Builder setCostPerDistance(double perDistance)
by default it is 1.0
perDistance - IllegalArgumentException - if perDistance is smaller than zero@Deprecated public VehicleTypeImpl.Builder setCostPerTime(double perTime)
by default it is 0.0
perTime - IllegalArgumentException - if costPerTime is smaller than zeropublic VehicleTypeImpl.Builder setCostPerTransportTime(double perTime)
by default it is 0.0
perTime - IllegalArgumentException - if costPerTime is smaller than zeropublic VehicleTypeImpl.Builder setCostPerWaitingTime(double perWaitingTime)
by default it is 0.0
perWaitingTime - IllegalArgumentException - if costPerTime is smaller than zeropublic VehicleTypeImpl.Builder setCostPerServiceTime(double perServiceTime)
public VehicleTypeImpl build()
public VehicleTypeImpl.Builder addCapacityDimension(int dimIndex, int dimVal)
dimIndex - dimVal - IllegalArgumentException - if dimVal < 0IllegalArgumentException - if capacity dimension is already setpublic VehicleTypeImpl.Builder setCapacityDimensions(Capacity capacity)
Note if you use this you cannot use addCapacityDimension(int dimIndex, int dimVal) anymore. Thus either build
your dimensions with addCapacityDimension(int dimIndex, int dimVal) or set the already built dimensions with
this method.
capacity - IllegalArgumentException - if capacityDimension has already been addedpublic VehicleTypeImpl.Builder setProfile(String profile)
Copyright © 2013–2019. All rights reserved.