Package globus.glroute
Class CostingOptions.Truck
java.lang.Object
globus.glroute.CostingOptions
globus.glroute.CostingOptions.Truck
- Enclosing class:
- CostingOptions
Options for truck mode
-
Nested Class Summary
Nested classes/interfaces inherited from class globus.glroute.CostingOptions
CostingOptions.Auto, CostingOptions.Bicycle, CostingOptions.Motorcycle, CostingOptions.MotorScooter, CostingOptions.Pedestrian, CostingOptions.Penalties, CostingOptions.Road, CostingOptions.Straight, CostingOptions.Truck, CostingOptions.Vehicle
-
Field Summary
Modifier and TypeFieldDescriptionfloat
The axle count of the truck.float
The axle load of the truck (in metric tons).boolean
A value indicating if the truck is carrying hazardous materials.float
The length of the truck (in meters).Road optionsVehicle optionsfloat
The weight of the truck (in metric tons). -
Constructor Summary
-
Method Summary
Methods inherited from class globus.glroute.CostingOptions
getJson, initFromJson
-
Field Details
-
road
Road options -
vehicle
Vehicle options -
length
public float lengthThe length of the truck (in meters). Default 21.64. -
weight
public float weightThe weight of the truck (in metric tons). Default 21.77. -
axleLoad
public float axleLoadThe axle load of the truck (in metric tons). Default 9.07. -
axleCount
public float axleCountThe axle count of the truck. Default 5. -
hazmat
public boolean hazmatA value indicating if the truck is carrying hazardous materials. Default false.
-
-
Constructor Details
-
Truck
public Truck()
-
-
Method Details
-
write
- Throws:
IOException
-