Interface IResourceDepot
- All Known Implementing Classes:
AbstractResourceDepot, SimpleResourceDepot
public interface IResourceDepot
The Interface IResourceDepot.
- Since:
- Jul 30, 2020
- Version:
- Jul 30, 2020
- Author:
- jrich
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(ILoadCapacity load) Adds the.voidAdds the.voidadd(List<ILoadCapacity> loads) Adds the.voidaddAndUpdate(List<ILoadCapacity> loadCapacities, int arraySize) Adds the and update.doublecalculateMatchLoad(String itemId, double loadValue) Calculate match load.createWith(List<ILoadCapacity> loads) Creates the with.Gets the.Gets the capacity unit map.doubleGets the current total matched load.Gets the depot id.intGets the emtpy at end of route factor.getItems()Gets the items.getLoadCapacityBySearchIndex(int index) Gets the load capacity by search index.doubleGets the maximal total capacity.intgetPerKilometerCostFactor(String loadId) Gets the per kilometer cost factor.intGets the search array size.doubleinverseCalculateMatchLoad(String itemId, double matchedloadValue) Inverse calculate match load.voidinvokeSearchArray(String[] loadIds) Invoke search array.booleanremove(ILoadCapacity item) Removes the.voidsetCapacityUnitMap(Map<String, Double> capacityUnitMap) Sets the capacity unit map.typeName()Gets the type name.visit(INodeDepot nodeDepot, ILogicEntityRoute route, long arrivalTime) Visit.
-
Method Details
-
getDepotId
-
typeName
-
visit
Visit.- Parameters:
nodeDepot- the node depotroute- the routearrivalTime- the arrival time- Returns:
- the visit depot exchange helper
-
add
-
add
-
remove
Removes the.- Parameters:
item- the item- Returns:
- true, if successful
-
get
-
createWith
Creates the with.- Parameters:
loads- the loads- Returns:
- the i resource depot
-
getMaximalTotalCapacity
double getMaximalTotalCapacity()Gets the maximal total capacity.- Returns:
- the maximal total capacity
-
add
Adds the.- Parameters:
loadId- the load idcapacityFactor- the capacity factor
-
getCurrentTotalMatchedLoad
double getCurrentTotalMatchedLoad()Gets the current total matched load.- Returns:
- the current total matched load
-
calculateMatchLoad
Calculate match load.- Parameters:
itemId- the item idloadValue- the load value- Returns:
- the double
-
inverseCalculateMatchLoad
Inverse calculate match load.- Parameters:
itemId- the item idmatchedloadValue- the matchedload value- Returns:
- the double
-
getEmtpyAtEndOfRouteFactor
Gets the emtpy at end of route factor.- Parameters:
id- the id- Returns:
- the emtpy at end of route factor
-
getPerKilometerCostFactor
Gets the per kilometer cost factor.- Parameters:
loadId- the load id- Returns:
- the per kilometer cost factor
-
invokeSearchArray
-
getItems
-
getLoadCapacityBySearchIndex
Gets the load capacity by search index.- Parameters:
index- the index- Returns:
- the load capacity by search index
-
getSearchArraySize
int getSearchArraySize()Gets the search array size.- Returns:
- the search array size
-
addAndUpdate
Adds the and update.- Parameters:
loadCapacities- the load capacitiesarraySize- the array size
-
setCapacityUnitMap
-
getCapacityUnitMap
Gets the capacity unit map.Required alongside
setCapacityUnitMap(Map)so that Jackson can both serialize and deserialize this field. Without a getter the field is write-only in Jackson's property model, producing awriteOnlyschema entry that hides the value in API responses.- Returns:
- the capacity unit map, or an empty map if not configured
-