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
FieldsFields inherited from class AbstractLoadCapacity
PIECE_FIT_TOLERANCE -
Constructor Summary
ConstructorsConstructorDescriptionSimpleLoadCapacity(String loadCapacityId, int maxCapacityValue, int currentLoad) -
Method Summary
Modifier and TypeMethodDescriptionintGetter formaxCapacityValuebridging the constructor parameter name to the serialized field name.merge(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 AbstractLoadCapacity
getCurrentLoad, getId, getLoadPickupTime, getMaximalIndividualLoadCapacity, getSearchIndex, setLoadPickupTime, setSearchIndex, toWholePiecesWithinTolerance
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
SimpleLoadCapacity
-
-
Method Details
-
getMaxCapacityValue
public int getMaxCapacityValue()Getter formaxCapacityValuebridging the constructor parameter name to the serialized field name. Without this override Jackson can deserialize the field via the constructor but cannot serialize it, producing awriteOnlyschema entry. -
merge
Description copied from interface:ILoadCapacityMerge 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:ILoadCapacityThe 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
-
toString
-