Class ScenarioCsvDownloadReport
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.backend.server.downloadreport.ScenarioCsvDownloadReport
-
public class ScenarioCsvDownloadReport extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]DMN_AUDIT_HEADERprotected static String[]DMN_COUNTER_HEADERprotected static String[]DMN_OVERALL_STATS_HEADERprotected static String[]RULE_AUDIT_HEADERprotected static String[]RULE_COUNTER_HEADERprotected static String[]RULE_OVERALL_STATS_HEADER
-
Constructor Summary
Constructors Constructor Description ScenarioCsvDownloadReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgenerateAuditLogHeader(org.apache.commons.csv.CSVPrinter printer, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)protected voidgenerateOverallStatsHeader(org.apache.commons.csv.CSVPrinter printer, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)protected voidgenerateRulesCounterHeader(org.apache.commons.csv.CSVPrinter printer, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)StringgetReport(org.drools.scenariosimulation.api.model.SimulationRunMetadata simulationRunMetadata, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)protected voidprintAuditLogLine(org.drools.scenariosimulation.api.model.AuditLogLine toPrint, org.apache.commons.csv.CSVPrinter printer)protected voidprintOverallStatsLine(org.apache.commons.csv.CSVPrinter printer, int available, int executed, double coveragePercentage)protected voidprintRulesCounterLine(org.apache.commons.csv.CSVPrinter printer, String rule, int times)
-
-
-
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
-
-
Method Detail
-
getReport
public String getReport(org.drools.scenariosimulation.api.model.SimulationRunMetadata simulationRunMetadata, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
- Parameters:
simulationRunMetadata- theSimulationRunMetadatato print outmodelType-- 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
-
-