1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

added javadoc to core.problem.vehicle.VehicleFleetManager

This commit is contained in:
oblonski 2014-05-15 10:48:12 +02:00
parent 312ebc8313
commit 1a67d1e20e

View file

@ -21,14 +21,46 @@ import java.util.Collection;
public interface VehicleFleetManager { public interface VehicleFleetManager {
/**
* Locks vehicle.
*
* <p>This indicates that this vehicle is being used. Thus it is not in list of available vehicles.
* @param vehicle
*/
public abstract void lock(Vehicle vehicle); public abstract void lock(Vehicle vehicle);
/**
* Unlocks vehicle.
*
* <p>This indicates that this vehicle is not being used anymore. Thus it is in list of available vehicles.
* @param vehicle
*/
public abstract void unlock(Vehicle vehicle); public abstract void unlock(Vehicle vehicle);
/**
* Returns true if locked.
*
* @param vehicle
* @return
*/
public abstract boolean isLocked(Vehicle vehicle); public abstract boolean isLocked(Vehicle vehicle);
/**
* Unlocks all locked vehicles.
*
*/
public abstract void unlockAll(); public abstract void unlockAll();
/**
* Returns a collection of available vehicles.
*
* <p>Note that this does not return ALL available vehicles that were added to the fleetmanager. Vehicles are clustered according
* to {@link VehicleTypeKey}. If there are two unlocked vehicle with the same VehicleTypeKey then only one of them will be returned.
* This is to avoid returning too many vehicles that are basically equal.
* <p>Look at {@link VehicleTypeKey} to figure out whether two vehicles are equal or not.
*
* @return
*/
public abstract Collection<Vehicle> getAvailableVehicles(); public abstract Collection<Vehicle> getAvailableVehicles();
/** /**