public abstract class TextReporter extends Object implements Reporter
| Constructor and Description |
|---|
TextReporter(com.typesafe.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PolicyStats policyStats)
Adds the result of a policy simulation.
|
protected abstract String |
assemble(List<PolicyStats> results)
Assembles an aggregated report.
|
protected String[] |
headers()
Returns the column headers.
|
void |
print()
Writes the report to the output destination.
|
protected String[] headers()
public void add(PolicyStats policyStats)
public void print()
throws IOException
print in interface ReporterIOExceptionprotected abstract String assemble(List<PolicyStats> results)