Class SimpleLoadCapacity
java.lang.Object
com.dna.jopt.member.unit.pnd.capacity.AbstractLoadCapacity
com.dna.jopt.member.unit.pnd.capacity.simple.SimpleLoadCapacity
- All Implemented Interfaces:
ILoadCapacity
,IPNDItem
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSimpleLoadCapacity
(String loadCapacityId, int maxCapacityValue, int currentLoad) -
Method Summary
Modifier and TypeMethodDescriptionmerge
(ILoadCapacity itemTwo) Merge two capacities.toString()
typeName()
Gets the type name.visit
(ILoad load, IResourceDepot orgResourceDepot, double totalMatchedLeftCapacity, ILogicEntityRoute route, long resourceArrivalTime) The capacity is "visiting" a load.Methods inherited from class com.dna.jopt.member.unit.pnd.capacity.AbstractLoadCapacity
getCurrentLoad, getId, getLoadPickupTime, getMaximalIndividualLoadCapacity, getSearchIndex, setLoadPickupTime, setSearchIndex
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
SimpleLoadCapacity
-
-
Method Details
-
merge
Description copied from interface:ILoadCapacity
Merge two capacities.- Parameters:
itemTwo
- the item two- Returns:
- the optional
-
visit
public VisitLoadCapacityExchangeHelper visit(ILoad load, IResourceDepot orgResourceDepot, double totalMatchedLeftCapacity, ILogicEntityRoute route, long resourceArrivalTime) Description copied from interface:ILoadCapacity
The capacity is "visiting" a load.- Parameters:
load
- the load to be visitedorgResourceDepot
- the original resource depot before the visittotalMatchedLeftCapacity
- the total matched left capacity of the depot beofre visitroute
- the route with the resource that is holding the resource depotresourceArrivalTime
- the arrivalTime at the load- Returns:
- the visit load capacity exchange helper
-
typeName
Description copied from interface:IPNDItem
Gets the type name.- Returns:
- the type name
-
toString
-