Class ScenarioCsvDownloadReport


  • public class ScenarioCsvDownloadReport
    extends Object
    • Field Detail

      • DMN_OVERALL_STATS_HEADER

        protected static final String[] DMN_OVERALL_STATS_HEADER
      • RULE_OVERALL_STATS_HEADER

        protected static final String[] RULE_OVERALL_STATS_HEADER
      • DMN_COUNTER_HEADER

        protected static final String[] DMN_COUNTER_HEADER
      • RULE_COUNTER_HEADER

        protected static final String[] RULE_COUNTER_HEADER
      • DMN_AUDIT_HEADER

        protected static final String[] DMN_AUDIT_HEADER
      • RULE_AUDIT_HEADER

        protected static final String[] RULE_AUDIT_HEADER
    • Constructor Detail

      • ScenarioCsvDownloadReport

        public ScenarioCsvDownloadReport()
    • Method Detail

      • getReport

        public String getReport​(org.drools.scenariosimulation.api.model.SimulationRunMetadata simulationRunMetadata,
                                org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
        Parameters:
        simulationRunMetadata - the SimulationRunMetadata to print out
        modelType -
        Returns:
        Throws:
        IOException
      • generateOverallStatsHeader

        protected void generateOverallStatsHeader​(org.apache.commons.csv.CSVPrinter printer,
                                                  org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
                                           throws IOException
        Throws:
        IOException
      • printOverallStatsLine

        protected void printOverallStatsLine​(org.apache.commons.csv.CSVPrinter printer,
                                             int available,
                                             int executed,
                                             double coveragePercentage)
                                      throws IOException
        Throws:
        IOException
      • generateRulesCounterHeader

        protected void generateRulesCounterHeader​(org.apache.commons.csv.CSVPrinter printer,
                                                  org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
                                           throws IOException
        Throws:
        IOException
      • printRulesCounterLine

        protected void printRulesCounterLine​(org.apache.commons.csv.CSVPrinter printer,
                                             String rule,
                                             int times)
                                      throws IOException
        Throws:
        IOException
      • generateAuditLogHeader

        protected void generateAuditLogHeader​(org.apache.commons.csv.CSVPrinter printer,
                                              org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
                                       throws IOException
        Throws:
        IOException
      • printAuditLogLine

        protected void printAuditLogLine​(org.drools.scenariosimulation.api.model.AuditLogLine toPrint,
                                         org.apache.commons.csv.CSVPrinter printer)
                                  throws IOException
        Throws:
        IOException