public class ScenarioCsvDownloadReport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
DMN_AUDIT_HEADER |
protected static String[] |
DMN_COUNTER_HEADER |
protected static String[] |
DMN_OVERALL_STATS_HEADER |
protected static String[] |
RULE_AUDIT_HEADER |
protected static String[] |
RULE_COUNTER_HEADER |
protected static String[] |
RULE_OVERALL_STATS_HEADER |
| Constructor and Description |
|---|
ScenarioCsvDownloadReport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateAuditLogHeader(org.apache.commons.csv.CSVPrinter printer,
org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType) |
protected void |
generateOverallStatsHeader(org.apache.commons.csv.CSVPrinter printer,
org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType) |
protected void |
generateRulesCounterHeader(org.apache.commons.csv.CSVPrinter printer,
org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType) |
String |
getReport(org.drools.scenariosimulation.api.model.SimulationRunMetadata simulationRunMetadata,
org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType) |
protected void |
printAuditLogLine(org.drools.scenariosimulation.api.model.AuditLogLine toPrint,
org.apache.commons.csv.CSVPrinter printer) |
protected void |
printOverallStatsLine(org.apache.commons.csv.CSVPrinter printer,
int available,
int executed,
double coveragePercentage) |
protected void |
printRulesCounterLine(org.apache.commons.csv.CSVPrinter printer,
String rule,
int times) |
protected static final String[] DMN_OVERALL_STATS_HEADER
protected static final String[] RULE_OVERALL_STATS_HEADER
protected static final String[] DMN_COUNTER_HEADER
protected static final String[] RULE_COUNTER_HEADER
protected static final String[] DMN_AUDIT_HEADER
protected static final String[] RULE_AUDIT_HEADER
public String getReport(org.drools.scenariosimulation.api.model.SimulationRunMetadata simulationRunMetadata, org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
simulationRunMetadata - the SimulationRunMetadata to print outmodelType - IOExceptionprotected void generateOverallStatsHeader(org.apache.commons.csv.CSVPrinter printer,
org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
throws IOException
IOExceptionprotected void printOverallStatsLine(org.apache.commons.csv.CSVPrinter printer,
int available,
int executed,
double coveragePercentage)
throws IOException
IOExceptionprotected void generateRulesCounterHeader(org.apache.commons.csv.CSVPrinter printer,
org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
throws IOException
IOExceptionprotected void printRulesCounterLine(org.apache.commons.csv.CSVPrinter printer,
String rule,
int times)
throws IOException
IOExceptionprotected void generateAuditLogHeader(org.apache.commons.csv.CSVPrinter printer,
org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type modelType)
throws IOException
IOExceptionprotected void printAuditLogLine(org.drools.scenariosimulation.api.model.AuditLogLine toPrint,
org.apache.commons.csv.CSVPrinter printer)
throws IOException
IOExceptionCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.