public abstract class AbstractResourceDepot extends AbstractGenericDepot<ILoadCapacity> implements IResourceDepot
Constructor and Description |
---|
AbstractResourceDepot(String depotId,
double maximalTotalCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(String loadId,
double capacityFactor)
Adds the.
|
void |
addAndUpdate(List<ILoadCapacity> loadCapacities,
int arraySize)
Adds the and update.
|
void |
addToCurrentTotalMatchLoad(double addMatchLoad) |
double |
calculateMatchLoad(String itemId,
double loadValue)
Calculate match load.
|
Map<String,Double> |
getCapacityUnitMap() |
double |
getCurrentTotalMatchedLoad()
Gets the current total matched load.
|
Map<String,Integer> |
getEmptyAtEndOfRouteFactorMap() |
int |
getEmtpyAtEndOfRouteFactor(String loadId)
Gets the emtpy at end of route factor.
|
Optional<ILoadCapacity> |
getLoadCapacityBySearchIndex(int index)
Gets the load capacity by search index.
|
double |
getMaximalTotalCapacity()
Gets the maximal total capacity.
|
int |
getPerKilometerCostFactor(String loadId)
Gets the per kilometer cost factor.
|
Map<String,Integer> |
getPerKilometerCostFactorMap() |
int |
getSearchArraySize()
Gets the search array size.
|
double |
inverseCalculateMatchLoad(String itemId,
double matchedloadValue)
Inverse calculate match load.
|
void |
invokeSearchArray(String[] loadIds)
Invoke search array.
|
Optional<ILoadCapacity> |
mergeItem(ILoadCapacity itemOne,
ILoadCapacity itemTwo) |
void |
setCapacityUnitMap(Map<String,Double> capacityUnitMap)
Sets the capacity unit map.
|
add, add, get, getDepotId, getItems, postAdd, remove, replace, setItems
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, createWith, get, getDepotId, getItems, remove, typeName, visit
public AbstractResourceDepot(String depotId, double maximalTotalCapacity)
public void invokeSearchArray(String[] loadIds)
IResourceDepot
invokeSearchArray
in interface IResourceDepot
loadIds
- the load idspublic int getSearchArraySize()
IResourceDepot
getSearchArraySize
in interface IResourceDepot
public void addAndUpdate(List<ILoadCapacity> loadCapacities, int arraySize)
IResourceDepot
addAndUpdate
in interface IResourceDepot
loadCapacities
- the load capacitiesarraySize
- the array sizepublic Optional<ILoadCapacity> getLoadCapacityBySearchIndex(int index)
IResourceDepot
getLoadCapacityBySearchIndex
in interface IResourceDepot
index
- the indexpublic double getCurrentTotalMatchedLoad()
IResourceDepot
getCurrentTotalMatchedLoad
in interface IResourceDepot
public void addToCurrentTotalMatchLoad(double addMatchLoad)
public double calculateMatchLoad(String itemId, double loadValue)
IResourceDepot
calculateMatchLoad
in interface IResourceDepot
itemId
- the item idloadValue
- the load valuepublic double inverseCalculateMatchLoad(String itemId, double matchedloadValue)
IResourceDepot
inverseCalculateMatchLoad
in interface IResourceDepot
itemId
- the item idmatchedloadValue
- the matchedload valuepublic double getMaximalTotalCapacity()
IResourceDepot
getMaximalTotalCapacity
in interface IResourceDepot
public void add(String loadId, double capacityFactor)
IResourceDepot
add
in interface IResourceDepot
loadId
- the load idcapacityFactor
- the capacity factorpublic void setCapacityUnitMap(Map<String,Double> capacityUnitMap)
IResourceDepot
setCapacityUnitMap
in interface IResourceDepot
capacityUnitMap
- the capacity unit mappublic int getEmtpyAtEndOfRouteFactor(String loadId)
IResourceDepot
getEmtpyAtEndOfRouteFactor
in interface IResourceDepot
loadId
- the idpublic int getPerKilometerCostFactor(String loadId)
IResourceDepot
getPerKilometerCostFactor
in interface IResourceDepot
loadId
- the load idpublic Optional<ILoadCapacity> mergeItem(ILoadCapacity itemOne, ILoadCapacity itemTwo)
mergeItem
in class AbstractGenericDepot<ILoadCapacity>
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.