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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe Enum SupplyConflictStrategy. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWith(List<ILoadCapacity> loadCapacities) Creates the with.getUnmatcheLoadHelper(ILoad unmatchedLoad) voidpostAdd(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, setEmptyAtEndOfRouteFactorMapMethods inherited from class com.dna.jopt.member.unit.pnd.depot.AbstractGenericDepot
add, add, get, getDepotId, getItems, remove, replace, setItemsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:IResourceDepotVisit.- Parameters:
nodeDepot- the node depotroute- the routeresourceArrivalTime- the arrival time- Returns:
- the visit depot exchange helper
-
getUnmatcheLoadHelper
-
createWith
Description copied from interface:IResourceDepotCreates the with.- Parameters:
loadCapacities- the loads- Returns:
- the i resource depot
-
typeName
Description copied from interface:IResourceDepotGets the type name.- Returns:
- the type name
-
toString
-
postAdd
- Specified by:
postAddin classAbstractGenericDepot<ILoadCapacity>
-