Class AbstractLoadCapacity
java.lang.Object
com.dna.jopt.member.unit.pnd.capacity.AbstractLoadCapacity
- All Implemented Interfaces:
ILoadCapacity,IPNDItem
- Direct Known Subclasses:
DegradingLoadCapacity,SimpleLoadCapacity
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractLoadCapacity(String loadCapacityId, int maximalIndividualLoadCapacity, int currentLoad) -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the current load.getId()Gets the id of the PNDItemGets the load pickup time.doubleGets the maximal individual load capacity.intGets the search index.voidsetLoadPickupTime(long loadPickupTimeMillis) voidsetSearchIndex(int searchIndex) Sets the search index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.dna.jopt.member.unit.pnd.capacity.ILoadCapacity
merge, visit
-
Constructor Details
-
AbstractLoadCapacity
public AbstractLoadCapacity(String loadCapacityId, int maximalIndividualLoadCapacity, int currentLoad)
-
-
Method Details
-
setLoadPickupTime
public void setLoadPickupTime(long loadPickupTimeMillis) - Specified by:
setLoadPickupTimein interfaceILoadCapacity
-
getLoadPickupTime
Description copied from interface:ILoadCapacityGets the load pickup time. In case the capacity accepts a load, the pickup time is saved.- Specified by:
getLoadPickupTimein interfaceILoadCapacity- Returns:
- the load pickup time
-
setSearchIndex
public void setSearchIndex(int searchIndex) Description copied from interface:IPNDItemSets the search index.- Specified by:
setSearchIndexin interfaceIPNDItem- Parameters:
searchIndex- the new search index
-
getSearchIndex
public int getSearchIndex()Description copied from interface:IPNDItemGets the search index.- Specified by:
getSearchIndexin interfaceIPNDItem- Returns:
- the search index
-
getId
Description copied from interface:IPNDItemGets the id of the PNDItem -
getCurrentLoad
public double getCurrentLoad()Description copied from interface:ILoadCapacityGets the current load.- Specified by:
getCurrentLoadin interfaceILoadCapacity- Returns:
- the current load
-
getMaximalIndividualLoadCapacity
public double getMaximalIndividualLoadCapacity()Description copied from interface:ILoadCapacityGets the maximal individual load capacity.- Specified by:
getMaximalIndividualLoadCapacityin interfaceILoadCapacity- Returns:
- the maximal individual load capacity
-