|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mil.af.afit.router.UVRVehicle
Vehicles are converted to this for the Universal Vehicle Router. You can get
back to the original vehicle by calling getParentVehicle()
.
Vehicle
,
HVehicle
Constructor Summary | |
UVRVehicle(UVRVehicle copyThis)
Constructs a copy of the specificed UVRVehicle. |
|
UVRVehicle(Vehicle fromThis,
Site[] sites,
Kernel kernel)
Constructs a UVRVehicle based on the specified vehicle. |
Method Summary | |
void |
addProductForOrderType(int amount,
mil.af.afit.uvr.HOrder order)
Does nothing since this problem does not deliver any goods. |
java.lang.Object |
clone()
Makes a copy of the vehicle. |
int |
getCurrentAmountAvailableForOrderType(mil.af.afit.uvr.HOrder order)
Returns Integer.MAX_VALUE . |
double |
getEarliestDepartureTime()
Returns the first time when the vehicle can takeoff. |
double |
getEndingLatitude()
Returns vehicle's ending latitude |
double |
getEndingLongitude()
Returns vehicle's ending longitude |
int |
getID()
Returns id. |
int[] |
getMapSiteIDtoArrayIndex()
Returns a mapping array. |
Vehicle |
getParentVehicle()
Returns parent vehicle. |
double |
getPenaltyForTravel(mil.af.afit.uvr.HOrder from,
mil.af.afit.uvr.HOrder to)
Returns the penalty to travel between two sites (or depot and a site). |
double[][] |
getPenaltyMatrix()
Returns the penalty matrix in use. |
double |
getRange()
Returns the vehicle's range. |
double |
getStartingLatitude()
Returns vehicle's starting latitude |
double |
getStartingLongitude()
Returns vehicle's starting longitude |
int[] |
getSupportedDemands()
Returns vehicle capabilities. |
double[][] |
getTimeMatrix()
Returns the time matrix in use. |
double |
getTimeToService(mil.af.afit.uvr.HOrder from)
Returns the service time. |
double |
getTimeToTravel(mil.af.afit.uvr.HOrder from,
mil.af.afit.uvr.HOrder to)
Returns the time to travel between two sites (or depot and a site). |
void |
removeProductForOrderType(int amount,
mil.af.afit.uvr.HOrder order)
Does nothing since this problem does not deliver any goods. |
void |
resetProductsForAllOrderTypes()
Does nothing since this problem does not deliver any goods. |
boolean |
supportsHOrderType(mil.af.afit.uvr.HOrder order)
Returns whether or not the vehicle supports the given order. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UVRVehicle(Vehicle fromThis, Site[] sites, Kernel kernel)
fromThis
- vehicle to base it onsites
- sites to use for calculating travel matriceskernel
- kernel being usedVehicle
,
Site
,
Kernel
public UVRVehicle(UVRVehicle copyThis)
copyThis
- vehicle to copyMethod Detail |
public final int getID()
public final Vehicle getParentVehicle()
Vehicle
public final int[] getSupportedDemands()
public final double[][] getTimeMatrix()
public final double[][] getPenaltyMatrix()
public final int[] getMapSiteIDtoArrayIndex()
public final double getStartingLatitude()
public final double getStartingLongitude()
public final double getEndingLatitude()
public final double getEndingLongitude()
public final boolean supportsHOrderType(mil.af.afit.uvr.HOrder order)
supportsHOrderType
in interface mil.af.afit.uvr.HVehicle
public final int getCurrentAmountAvailableForOrderType(mil.af.afit.uvr.HOrder order)
Integer.MAX_VALUE
.getCurrentAmountAvailableForOrderType
in interface mil.af.afit.uvr.HVehicle
Integer.MAX_VALUE
public final void removeProductForOrderType(int amount, mil.af.afit.uvr.HOrder order)
removeProductForOrderType
in interface mil.af.afit.uvr.HVehicle
public final void addProductForOrderType(int amount, mil.af.afit.uvr.HOrder order)
addProductForOrderType
in interface mil.af.afit.uvr.HVehicle
public final void resetProductsForAllOrderTypes()
resetProductsForAllOrderTypes
in interface mil.af.afit.uvr.HVehicle
public final double getEarliestDepartureTime()
getEarliestDepartureTime
in interface mil.af.afit.uvr.HVehicle
public final double getTimeToTravel(mil.af.afit.uvr.HOrder from, mil.af.afit.uvr.HOrder to)
getTimeToTravel
in interface mil.af.afit.uvr.HVehicle
public final double getTimeToService(mil.af.afit.uvr.HOrder from)
getTimeToService
in interface mil.af.afit.uvr.HVehicle
public final double getPenaltyForTravel(mil.af.afit.uvr.HOrder from, mil.af.afit.uvr.HOrder to)
getPenaltyForTravel
in interface mil.af.afit.uvr.HVehicle
public final double getRange()
getRange
in interface mil.af.afit.uvr.HVehicle
public java.lang.Object clone()
clone
in interface mil.af.afit.uvr.HVehicle
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |