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 TypeMethodDescriptionboolean
add
(ILoadCapacity load) Adds the.void
Adds the.void
add
(List<ILoadCapacity> loads) Adds the.void
addAndUpdate
(List<ILoadCapacity> loadCapacities, int arraySize) Adds the and update.double
calculateMatchLoad
(String itemId, double loadValue) Calculate match load.createWith
(List<ILoadCapacity> loads) Creates the with.Gets the.double
Gets the current total matched load.Gets the depot id.int
Gets the emtpy at end of route factor.getItems()
Gets the items.getLoadCapacityBySearchIndex
(int index) Gets the load capacity by search index.double
Gets the maximal total capacity.int
getPerKilometerCostFactor
(String loadId) Gets the per kilometer cost factor.int
Gets the search array size.double
inverseCalculateMatchLoad
(String itemId, double matchedloadValue) Inverse calculate match load.void
invokeSearchArray
(String[] loadIds) Invoke search array.boolean
remove
(ILoadCapacity item) Removes the.void
setCapacityUnitMap
(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
String getDepotId()Gets the depot id.- Returns:
- the depot id
-
typeName
String typeName()Gets the type name.- Returns:
- the type name
-
visit
Visit.- Parameters:
nodeDepot
- the node depotroute
- the routearrivalTime
- the arrival time- Returns:
- the visit depot exchange helper
-
add
Adds the.- Parameters:
load
- the load- Returns:
- true, if successful
-
add
Adds the.- Parameters:
loads
- the loads
-
remove
Removes the.- Parameters:
item
- the item- Returns:
- true, if successful
-
get
Gets the.- Parameters:
key
- the key- Returns:
- the optional
-
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
Invoke search array.- Parameters:
loadIds
- the load ids
-
getItems
List<ILoadCapacity> getItems()Gets the items.- Returns:
- the items
-
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
Sets the capacity unit map.- Parameters:
capacityUnitMap
- the capacity unit map
-