Class EmissionsTracker.EmissionsReport

java.lang.Object
neqsim.process.sustainability.EmissionsTracker.EmissionsReport
All Implemented Interfaces:
Serializable
Enclosing class:
EmissionsTracker

public static class EmissionsTracker.EmissionsReport extends Object implements Serializable
Complete emissions report for a process system.
Version:
1.0
Author:
ESOL
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • timestamp

      public Instant timestamp
    • processName

      public String processName
    • totalCO2eKgPerHr

      public double totalCO2eKgPerHr
    • totalPowerKW

      public double totalPowerKW
    • totalHeatDutyKW

      public double totalHeatDutyKW
    • equipmentEmissions

      public Map<String, EmissionsTracker.EquipmentEmissions> equipmentEmissions
  • Constructor Details

    • EmissionsReport

      public EmissionsReport()
  • Method Details

    • getTotalCO2e

      public double getTotalCO2e(String unit)
      Gets total CO2e in specified units.
      Parameters:
      unit - "kg/hr", "ton/hr", "ton/day", "ton/yr"
      Returns:
      emissions in specified unit
    • getTotalPower

      public double getTotalPower(String unit)
      Gets total power consumption in specified units.
      Parameters:
      unit - "kW", "MW", "hp"
      Returns:
      power in specified unit
    • getFlaringCO2e

      public double getFlaringCO2e(String unit)
      Gets CO2e from flaring only.
      Parameters:
      unit - output unit
      Returns:
      flaring emissions
    • getEmissionsByCategory

      public Map<EmissionsTracker.EmissionCategory, Double> getEmissionsByCategory()
      Gets emissions breakdown by category.
      Returns:
      map of category to total emissions (kg/hr)
    • exportToCSV

      public void exportToCSV(String filePath) throws IOException
      Exports the report to CSV format.
      Parameters:
      filePath - output file path
      Throws:
      IOException - if file cannot be written
    • exportToJSON

      public void exportToJSON(String filePath) throws IOException
      Exports the report to JSON format.
      Parameters:
      filePath - output file path
      Throws:
      IOException - if file cannot be written
    • toJson

      public String toJson()
      Converts the report to a JSON string.
      Returns:
      JSON representation
    • getSummary

      public String getSummary()
      Returns a summary string of the emissions report.
      Returns:
      formatted summary