public abstract class TextReporter extends Object implements Reporter
| Modifier | Constructor and Description |
|---|---|
protected |
TextReporter(Config config,
Set<Policy.Characteristic> characteristics) |
| 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 Set<String> |
headers()
Returns the column headers.
|
protected Metrics |
metrics()
Returns the configuration for how to work with metrics.
|
protected abstract Metrics |
newMetrics()
Returns a new configuration for how to work with metrics.
|
void |
print()
Writes the report to the output destination.
|
Collection<PolicyStats> |
stats()
Returns the collected statistics.
|
protected TextReporter(Config config, Set<Policy.Characteristic> characteristics)
public void add(PolicyStats policyStats)
Reporterpublic void print()
throws IOException
Reporterprint in interface ReporterIOExceptionpublic Collection<PolicyStats> stats()
Reporterprotected Metrics metrics()
protected abstract Metrics newMetrics()
protected abstract String assemble(List<PolicyStats> results)