Class Vehicle
- java.lang.Object
-
- org.optaweb.vehiclerouting.domain.VehicleData
-
- org.optaweb.vehiclerouting.domain.Vehicle
-
public class Vehicle extends VehicleData
Vehicle that can be used to deliver cargo to visits.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()longid()Vehicle's ID.StringtoString()-
Methods inherited from class org.optaweb.vehiclerouting.domain.VehicleData
capacity, name
-
-
-
-
Constructor Detail
-
Vehicle
Vehicle(long id, String name, int capacity)
-
-
Method Detail
-
id
public long id()
Vehicle's ID.- Returns:
- unique ID
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classVehicleData
-
hashCode
public int hashCode()
- Overrides:
hashCodein classVehicleData
-
toString
public String toString()
- Overrides:
toStringin classVehicleData
-
-