Class SalesStreamDistribution

java.lang.Object
org.kigalisim.engine.recalc.SalesStreamDistribution

public class SalesStreamDistribution extends Object
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 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

      public SalesStreamDistribution(BigDecimal percentDomestic, BigDecimal percentImport)
      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

      public BigDecimal getPercentDomestic()
      Get the percentage of sales attributed to domestic.
      Returns:
      The domestic percentage (0.0 to 1.0)
    • getPercentImport

      public BigDecimal getPercentImport()
      Get the percentage of sales attributed to import.
      Returns:
      The import percentage (0.0 to 1.0)
    • getPercentExport

      public BigDecimal getPercentExport()
      Get the percentage of sales attributed to export.
      Returns:
      The export percentage (0.0 to 1.0)