Class Tank.Layer
java.lang.Object
com.amalgamasimulation.discreterate.Tank.Layer
Layer represents a portion of material mix contained within a
Tank.- Author:
- Alexander Morozov
-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the total amount of all materials inside thisLayer.Returns anAccumulatorthat describes the proportions of material amounts inside thisLayer.
-
Method Details
-
getAmount
public double getAmount()Returns the total amount of all materials inside thisLayer.- Returns:
- total amount of materials
-
getProportions
Returns anAccumulatorthat describes the proportions of material amounts inside thisLayer.Each element of the returned
Accumulatorcorresponds to a material in this Layer. The amount of each material in the Accumulator is the ratio of the material's amount in the Layer to the total materials amount in the Layer. The sum of amounts in the Accumulator is equal to 1.- Returns:
Accumulatordescribing the quantitative proportions of materials in this Layer
-