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 Details

    • getDepotId

      String getDepotId()
      Gets the depot id.
      Returns:
      the depot id
    • typeName

      String typeName()
      Gets the type name.
      Returns:
      the type name
    • visit

      VisitDepotExchangeHelper visit(INodeDepot nodeDepot, ILogicEntityRoute route, long arrivalTime)
      Visit.
      Parameters:
      nodeDepot - the node depot
      route - the route
      arrivalTime - the arrival time
      Returns:
      the visit depot exchange helper
    • add

      boolean add(ILoadCapacity load)
      Adds the.
      Parameters:
      load - the load
      Returns:
      true, if successful
    • add

      void add(List<ILoadCapacity> loads)
      Adds the.
      Parameters:
      loads - the loads
    • remove

      boolean remove(ILoadCapacity item)
      Removes the.
      Parameters:
      item - the item
      Returns:
      true, if successful
    • get

      Gets the.
      Parameters:
      key - the key
      Returns:
      the optional
    • createWith

      IResourceDepot createWith(List<ILoadCapacity> loads)
      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

      void add(String loadId, double capacityFactor)
      Adds the.
      Parameters:
      loadId - the load id
      capacityFactor - the capacity factor
    • getCurrentTotalMatchedLoad

      double getCurrentTotalMatchedLoad()
      Gets the current total matched load.
      Returns:
      the current total matched load
    • calculateMatchLoad

      double calculateMatchLoad(String itemId, double loadValue)
      Calculate match load.
      Parameters:
      itemId - the item id
      loadValue - the load value
      Returns:
      the double
    • inverseCalculateMatchLoad

      double inverseCalculateMatchLoad(String itemId, double matchedloadValue)
      Inverse calculate match load.
      Parameters:
      itemId - the item id
      matchedloadValue - the matchedload value
      Returns:
      the double
    • getEmtpyAtEndOfRouteFactor

      int getEmtpyAtEndOfRouteFactor(String id)
      Gets the emtpy at end of route factor.
      Parameters:
      id - the id
      Returns:
      the emtpy at end of route factor
    • getPerKilometerCostFactor

      int getPerKilometerCostFactor(String loadId)
      Gets the per kilometer cost factor.
      Parameters:
      loadId - the load id
      Returns:
      the per kilometer cost factor
    • invokeSearchArray

      void invokeSearchArray(String[] loadIds)
      Invoke search array.
      Parameters:
      loadIds - the load ids
    • getItems

      List<ILoadCapacity> getItems()
      Gets the items.
      Returns:
      the items
    • getLoadCapacityBySearchIndex

      Optional<ILoadCapacity> getLoadCapacityBySearchIndex(int index)
      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

      void addAndUpdate(List<ILoadCapacity> loadCapacities, int arraySize)
      Adds the and update.
      Parameters:
      loadCapacities - the load capacities
      arraySize - the array size
    • setCapacityUnitMap

      void setCapacityUnitMap(Map<String,Double> capacityUnitMap)
      Sets the capacity unit map.
      Parameters:
      capacityUnitMap - the capacity unit map