Interface ILoadCapacity

All Superinterfaces:
IPNDItem
All Known Implementing Classes:
AbstractLoadCapacity, DegradingLoadCapacity, SimpleLoadCapacity

public interface ILoadCapacity extends IPNDItem
The Interface ILoadCapacity.
Since:
Jul 27, 2020
Version:
Jul 27, 2020
Author:
jrich
  • Method Details

    • getCurrentLoad

      double getCurrentLoad()
      Gets the current load.
      Returns:
      the current load
    • getMaximalIndividualLoadCapacity

      double getMaximalIndividualLoadCapacity()
      Gets the maximal individual load capacity.
      Returns:
      the maximal individual load capacity
    • merge

      Merge two capacities.
      Parameters:
      itemTwo - the item two
      Returns:
      the optional
    • visit

      VisitLoadCapacityExchangeHelper visit(ILoad load, IResourceDepot orgResourceDepot, double totalMatchedLeftCapacity, ILogicEntityRoute route, long resourceArrivalTime)
      The capacity is "visiting" a load.
      Parameters:
      load - the load to be visited
      orgResourceDepot - the original resource depot before the visit
      totalMatchedLeftCapacity - the total matched left capacity of the depot beofre visit
      route - the route with the resource that is holding the resource depot
      resourceArrivalTime - the arrivalTime at the load
      Returns:
      the visit load capacity exchange helper
    • setLoadPickupTime

      void setLoadPickupTime(long loadPickupTimeMillis)
    • getLoadPickupTime

      Optional<Long> getLoadPickupTime()
      Gets the load pickup time. In case the capacity accepts a load, the pickup time is saved.
      Returns:
      the load pickup time