Class AbstractLoadCapacity

java.lang.Object
com.dna.jopt.member.unit.pnd.capacity.AbstractLoadCapacity
All Implemented Interfaces:
ILoadCapacity, IPNDItem
Direct Known Subclasses:
DegradingLoadCapacity, SimpleLoadCapacity

public abstract class AbstractLoadCapacity extends Object implements ILoadCapacity
  • Constructor Details

    • AbstractLoadCapacity

      public AbstractLoadCapacity(String loadCapacityId, int maximalIndividualLoadCapacity, int currentLoad)
  • Method Details

    • setLoadPickupTime

      public void setLoadPickupTime(long loadPickupTimeMillis)
      Specified by:
      setLoadPickupTime in interface ILoadCapacity
    • getLoadPickupTime

      public Optional<Long> getLoadPickupTime()
      Description copied from interface: ILoadCapacity
      Gets the load pickup time. In case the capacity accepts a load, the pickup time is saved.
      Specified by:
      getLoadPickupTime in interface ILoadCapacity
      Returns:
      the load pickup time
    • setSearchIndex

      public void setSearchIndex(int searchIndex)
      Description copied from interface: IPNDItem
      Sets the search index.
      Specified by:
      setSearchIndex in interface IPNDItem
      Parameters:
      searchIndex - the new search index
    • getSearchIndex

      public int getSearchIndex()
      Description copied from interface: IPNDItem
      Gets the search index.
      Specified by:
      getSearchIndex in interface IPNDItem
      Returns:
      the search index
    • getId

      public String getId()
      Description copied from interface: IPNDItem
      Gets the id of the PNDItem
      Specified by:
      getId in interface IPNDItem
      Returns:
      the id
    • getCurrentLoad

      public double getCurrentLoad()
      Description copied from interface: ILoadCapacity
      Gets the current load.
      Specified by:
      getCurrentLoad in interface ILoadCapacity
      Returns:
      the current load
    • getMaximalIndividualLoadCapacity

      public double getMaximalIndividualLoadCapacity()
      Description copied from interface: ILoadCapacity
      Gets the maximal individual load capacity.
      Specified by:
      getMaximalIndividualLoadCapacity in interface ILoadCapacity
      Returns:
      the maximal individual load capacity