public final class VehicleAttributes extends Object implements Serializable
| Constructor and Description |
|---|
VehicleAttributes(VehicleType vehicleType)
Creates the instance of VehicleAttributes class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Length |
getHeight()
Returns the height of the vehicle.
|
Length |
getLength()
Returns the length of the vehicle.
|
VehicleType |
getVehicleType()
Returns the Type of the vehicle.
|
Weight |
getWeight()
Returns the weight of the vehicle.
|
Length |
getWidth()
Returns the width of the vehicle.
|
int |
hashCode() |
Boolean |
isLooseningBarrierRestrictions()
Returns true if BARRIER restrictions should be loosened.
|
void |
setHeight(Length height)
Sets the Height of the vehicle to be used while processing this request.
|
void |
setLength(Length length)
Sets the Length of the vehicle to be used while processing this request.
|
void |
setLooseningBarrierRestrictions(Boolean looseningBarrierRestrictions)
Set the Barrier Loosened property.
|
void |
setWeight(Weight weight)
Sets the Weight of the vehicle to be used while processing this request.
|
void |
setWidth(Length width)
Sets the Width of the vehicle to be used while processing this request.
|
public VehicleAttributes(VehicleType vehicleType)
vehicleType - VehicleType choose the type of the vehicle.
looseningBarrierrestrictions specifies that barriers will be
removed when determining the route.public VehicleType getVehicleType()
VehicleType the type of the vehicle.public Length getLength()
Length the length of the vehicle.public void setLength(Length length)
length - Length to be used for request.public Length getWidth()
Length the width of the vehicle.public void setWidth(Length width)
width - Length to be used for request.public Length getHeight()
Length the height of the vehicle.public void setHeight(Length height)
height - Length to be used for request.public Weight getWeight()
Weight the weight of the vehicle.public void setWeight(Weight weight)
weight - Weight to be used for request.public Boolean isLooseningBarrierRestrictions()
public void setLooseningBarrierRestrictions(Boolean looseningBarrierRestrictions)
looseningBarrierRestrictions - setting