Interface ILoadCapacity
- All Superinterfaces:
IPNDItem
- All Known Implementing Classes:
AbstractLoadCapacity
,DegradingLoadCapacity
,SimpleLoadCapacity
The Interface ILoadCapacity.
- Since:
- Jul 27, 2020
- Version:
- Jul 27, 2020
- Author:
- jrich
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the current load.Gets the load pickup time.double
Gets the maximal individual load capacity.merge
(ILoadCapacity itemTwo) Merge two capacities.void
setLoadPickupTime
(long loadPickupTimeMillis) visit
(ILoad load, IResourceDepot orgResourceDepot, double totalMatchedLeftCapacity, ILogicEntityRoute route, long resourceArrivalTime) The capacity is "visiting" a load.Methods inherited from interface com.dna.jopt.member.unit.pnd.IPNDItem
getId, getSearchIndex, setSearchIndex, typeName
-
Method Details
-
getCurrentLoad
double getCurrentLoad()Gets the current load.- Returns:
- the current load
-
getMaximalIndividualLoadCapacity
double getMaximalIndividualLoadCapacity()Gets the maximal individual load capacity.- Returns:
- the maximal individual load capacity
-
merge
Merge two capacities.- Parameters:
itemTwo
- the item two- Returns:
- the optional
-
visit
VisitLoadCapacityExchangeHelper visit(ILoad load, IResourceDepot orgResourceDepot, double totalMatchedLeftCapacity, ILogicEntityRoute route, long resourceArrivalTime) The capacity is "visiting" a load.- Parameters:
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 load- Returns:
- the visit load capacity exchange helper
-
setLoadPickupTime
void setLoadPickupTime(long loadPickupTimeMillis) -
getLoadPickupTime
Gets the load pickup time. In case the capacity accepts a load, the pickup time is saved.- Returns:
- the load pickup time
-