Package org.kigalisim.engine.recalc
Class SalesStreamDistribution
java.lang.Object
org.kigalisim.engine.recalc.SalesStreamDistribution
Represents the percentage distribution between domestic, import, and export streams for sales.
This class encapsulates the percentage split logic for distributing sales between domestic, import, and export streams based on which streams have been enabled and their current values.
-
Constructor Summary
ConstructorsConstructorDescriptionSalesStreamDistribution(BigDecimal percentDomestic, BigDecimal percentImport) Create a new sales stream distribution without exports (legacy constructor).SalesStreamDistribution(BigDecimal percentDomestic, BigDecimal percentImport, BigDecimal percentExport) Create a new sales stream distribution. -
Method Summary
Modifier and TypeMethodDescriptionGet the percentage of sales attributed to domestic.Get the percentage of sales attributed to export.Get the percentage of sales attributed to import.
-
Constructor Details
-
SalesStreamDistribution
public SalesStreamDistribution(BigDecimal percentDomestic, BigDecimal percentImport, BigDecimal percentExport) Create a new sales stream distribution.- Parameters:
percentDomestic- The percentage of sales attributed to domestic (0.0 to 1.0)percentImport- The percentage of sales attributed to import (0.0 to 1.0)percentExport- The percentage of sales attributed to export (0.0 to 1.0)
-
SalesStreamDistribution
Create a new sales stream distribution without exports (legacy constructor).- Parameters:
percentDomestic- The percentage of sales attributed to domestic (0.0 to 1.0)percentImport- The percentage of sales attributed to import (0.0 to 1.0)
-
-
Method Details
-
getPercentDomestic
Get the percentage of sales attributed to domestic.- Returns:
- The domestic percentage (0.0 to 1.0)
-
getPercentImport
Get the percentage of sales attributed to import.- Returns:
- The import percentage (0.0 to 1.0)
-
getPercentExport
Get the percentage of sales attributed to export.- Returns:
- The export percentage (0.0 to 1.0)
-