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
ConstructorDescriptionAbstractLoadCapacity
(String loadCapacityId, int maximalIndividualLoadCapacity, int currentLoad) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the current load.getId()
Gets the id of the PNDItemGets the load pickup time.double
Gets the maximal individual load capacity.int
Gets the search index.void
setLoadPickupTime
(long loadPickupTimeMillis) void
setSearchIndex
(int searchIndex) Sets the search index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
setLoadPickupTime
in interfaceILoadCapacity
-
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 interfaceILoadCapacity
- Returns:
- the load pickup time
-
setSearchIndex
public void setSearchIndex(int searchIndex) Description copied from interface:IPNDItem
Sets the search index.- Specified by:
setSearchIndex
in interfaceIPNDItem
- Parameters:
searchIndex
- the new search index
-
getSearchIndex
public int getSearchIndex()Description copied from interface:IPNDItem
Gets the search index.- Specified by:
getSearchIndex
in interfaceIPNDItem
- Returns:
- the search index
-
getId
Description copied from interface:IPNDItem
Gets the id of the PNDItem -
getCurrentLoad
public double getCurrentLoad()Description copied from interface:ILoadCapacity
Gets the current load.- Specified by:
getCurrentLoad
in interfaceILoadCapacity
- Returns:
- the current load
-
getMaximalIndividualLoadCapacity
public double getMaximalIndividualLoadCapacity()Description copied from interface:ILoadCapacity
Gets the maximal individual load capacity.- Specified by:
getMaximalIndividualLoadCapacity
in interfaceILoadCapacity
- Returns:
- the maximal individual load capacity
-