Class CargoSpace
java.lang.Object
com.dna.jopt.member.unit.pnd.util.AbstractCargoItem
com.dna.jopt.member.unit.pnd.util.CargoSpace
- All Implemented Interfaces:
ICargoItem
,ICargoSpace
-
Constructor Summary
ConstructorDescriptionCargoSpace
(javax.measure.Quantity<javax.measure.quantity.Length> length, javax.measure.Quantity<javax.measure.quantity.Length> width) CargoSpace
(javax.measure.Quantity<javax.measure.quantity.Length> length, javax.measure.Quantity<javax.measure.quantity.Length> width, javax.measure.Quantity<javax.measure.quantity.Length> height) -
Method Summary
Modifier and TypeMethodDescriptioncalculateLoadingCapacityFactor
(ICargoSpaceGood good, javax.measure.Unit<javax.measure.quantity.Length> groundUnit) double
double
calculateMaxTotalLoadingCapacity
(javax.measure.Unit<javax.measure.quantity.Length> groundUnit) Methods inherited from class com.dna.jopt.member.unit.pnd.util.AbstractCargoItem
getHeight, getLength, getWidth
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.util.ICargoItem
getHeight, getLength, getWidth
-
Constructor Details
-
CargoSpace
public CargoSpace(javax.measure.Quantity<javax.measure.quantity.Length> length, javax.measure.Quantity<javax.measure.quantity.Length> width, javax.measure.Quantity<javax.measure.quantity.Length> height) -
CargoSpace
public CargoSpace(javax.measure.Quantity<javax.measure.quantity.Length> length, javax.measure.Quantity<javax.measure.quantity.Length> width)
-
-
Method Details
-
calculateLoadingCapacityFactor
- Specified by:
calculateLoadingCapacityFactor
in interfaceICargoSpace
-
calculateLoadingCapacityFactor
public Optional<Double> calculateLoadingCapacityFactor(ICargoSpaceGood good, javax.measure.Unit<javax.measure.quantity.Length> groundUnit) - Specified by:
calculateLoadingCapacityFactor
in interfaceICargoSpace
-
calculateMaxTotalLoadingCapacity
public double calculateMaxTotalLoadingCapacity()- Specified by:
calculateMaxTotalLoadingCapacity
in interfaceICargoSpace
-
calculateMaxTotalLoadingCapacity
public double calculateMaxTotalLoadingCapacity(javax.measure.Unit<javax.measure.quantity.Length> groundUnit) - Specified by:
calculateMaxTotalLoadingCapacity
in interfaceICargoSpace
-