public class DegradingLoadCapacity extends AbstractLoadCapacity
Constructor and Description |
---|
DegradingLoadCapacity(String loadCapacityId,
int maxCapacityValue,
int currentLoad,
int capDegradationPerStop,
int minimalTotaDegradatedCapacity) |
Modifier and Type | Method and Description |
---|---|
double |
getCapacityDegradationPerStop() |
double |
getMinimalTotaDegradatedCapacity() |
Optional<ILoadCapacity> |
merge(ILoadCapacity itemTwo)
Merge two capacities.
|
String |
toString() |
String |
typeName()
Gets the type name.
|
VisitLoadCapacityExchangeHelper |
visit(ILoad load,
IResourceDepot orgResourceDepot,
double totalMatchedLeftCapacity,
ILogicEntityRoute route,
long resourceArrivalTime)
The capacity is "visiting" a load.
|
getCurrentLoad, getId, getLoadPickupTime, getMaximalIndividualLoadCapacity, getSearchIndex, setLoadPickupTime, setSearchIndex
public static final String TYPE_NAME
public DegradingLoadCapacity(String loadCapacityId, int maxCapacityValue, int currentLoad, int capDegradationPerStop, int minimalTotaDegradatedCapacity)
public Optional<ILoadCapacity> merge(ILoadCapacity itemTwo)
ILoadCapacity
itemTwo
- the item twopublic double getCapacityDegradationPerStop()
public double getMinimalTotaDegradatedCapacity()
public VisitLoadCapacityExchangeHelper visit(ILoad load, IResourceDepot orgResourceDepot, double totalMatchedLeftCapacity, ILogicEntityRoute route, long resourceArrivalTime)
ILoadCapacity
load
- the load to be visitedorgResourceDepot
- the original resource depot before the visittotalMatchedLeftCapacity
- the total matched left capacity of the depot beofre visitroute
- the route with the resource that is holding the resource depotresourceArrivalTime
- the arrivalTime at the loadCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.