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 AbstractResourceDepot
add, addAndUpdate, addToCurrentTotalMatchLoad, calculateMatchLoad, getCapacityUnitMap, getCurrentTotalMatchedLoad, getEmptyAtEndOfRouteFactorMap, getEmtpyAtEndOfRouteFactor, getLoadCapacityBySearchIndex, getMaximalTotalCapacity, getPerKilometerCostFactor, getPerKilometerCostFactorMap, getSearchArraySize, inverseCalculateMatchLoad, invokeSearchArray, mergeItem, setCapacityUnitMap, setEmptyAtEndOfRouteFactorMapMethods inherited from class AbstractGenericDepot
add, add, get, getDepotId, getItems, loadItemsDirect, postAddOnCopy, remove, replace, resetDerivedState, setItemsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
toString
-
postAdd
- Specified by:
postAddin classAbstractGenericDepot<ILoadCapacity>
-