Class SimpleResourceDepot
java.lang.Object
com.dna.jopt.member.unit.pnd.depot.AbstractGenericDepot<ILoadCapacity>
com.dna.jopt.member.unit.pnd.depot.resource.AbstractResourceDepot
com.dna.jopt.member.unit.pnd.depot.resource.simple.SimpleResourceDepot
- All Implemented Interfaces:
IResourceDepot
The Class CapacityLimitedResourceDepot. A depot with an overall capacity.
- Since:
- Jul 22, 2020
- Version:
- Jul 22, 2020
- Author:
- jrich
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The Enum SupplyConflictStrategy. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateWith
(List<ILoadCapacity> loadCapacities) Creates the with.getUnmatcheLoadHelper
(ILoad unmatchedLoad) void
postAdd
(ILoadCapacity item) toString()
typeName()
Gets the type name.visit
(INodeDepot nodeDepot, ILogicEntityRoute route, long resourceArrivalTime) Visit.Methods inherited from class com.dna.jopt.member.unit.pnd.depot.resource.AbstractResourceDepot
add, addAndUpdate, addToCurrentTotalMatchLoad, calculateMatchLoad, getCapacityUnitMap, getCurrentTotalMatchedLoad, getEmptyAtEndOfRouteFactorMap, getEmtpyAtEndOfRouteFactor, getLoadCapacityBySearchIndex, getMaximalTotalCapacity, getPerKilometerCostFactor, getPerKilometerCostFactorMap, getSearchArraySize, inverseCalculateMatchLoad, invokeSearchArray, mergeItem, setCapacityUnitMap, setEmptyAtEndOfRouteFactorMap
Methods inherited from class com.dna.jopt.member.unit.pnd.depot.AbstractGenericDepot
add, add, get, getDepotId, getItems, remove, replace, setItems
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.dna.jopt.member.unit.pnd.depot.resource.IResourceDepot
add, add, get, getDepotId, getItems, remove
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
SimpleResourceDepot
-
-
Method Details
-
visit
public VisitDepotExchangeHelper visit(INodeDepot nodeDepot, ILogicEntityRoute route, long resourceArrivalTime) Description copied from interface:IResourceDepot
Visit.- Parameters:
nodeDepot
- the node depotroute
- the routeresourceArrivalTime
- the arrival time- Returns:
- the visit depot exchange helper
-
getUnmatcheLoadHelper
-
createWith
Description copied from interface:IResourceDepot
Creates the with.- Parameters:
loadCapacities
- the loads- Returns:
- the i resource depot
-
typeName
Description copied from interface:IResourceDepot
Gets the type name.- Returns:
- the type name
-
toString
-
postAdd
- Specified by:
postAdd
in classAbstractGenericDepot<ILoadCapacity>
-