Class Report
- java.lang.Object
-
- de.rwth.swc.coffee4j.algorithmic.report.Report
-
public class Report extends Object
A report any algorithm inside the combinatorial test input generation can use to notify the user of events not covered by life cycle reporting.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convertArguments(ArgumentConverter argumentConverter)
Converts all arguments given to the constructor using the givenArgumentConverter
.boolean
equals(Object object)
Object[]
getArguments()
String
getResolvableReport()
String
getResolvedReport()
Once this method has been called, the report will not be resolved again, so any changing arguments after a call to this method are not respected.int
hashCode()
static Report
report(String report, Object... arguments)
String
toString()
-
-
-
Constructor Detail
-
Report
public Report(Report report)
Copy constructor.- Parameters:
report
- the report to be copied
-
Report
public Report(String resolvableReport, BiFunction<String,Object[],String> reportResolver, Object... arguments)
Creates a new report based on a resolvable string. The given function should be able to resolve the string to something sensible using the supplied arguments. The string cannot be resolved at the beginning, sinceArgumentConverter
s may be used to convert the given argument, changing the meaning of the report.- Parameters:
resolvableReport
- a report which can be resolved with the resolver and arguments. Must not benull
reportResolver
- to resolve the report ot a sensible string. Must not benull
arguments
- all arguments used to enrich the report. May be empty, but notnull
-
-
Method Detail
-
getResolvableReport
public String getResolvableReport()
- Returns:
- the report as supplied to the constructor (not resolved with any arguments)
-
getResolvedReport
public String getResolvedReport()
Once this method has been called, the report will not be resolved again, so any changing arguments after a call to this method are not respected.- Returns:
- the report resolved using the given resolver and the arguments.
-
convertArguments
public void convertArguments(ArgumentConverter argumentConverter)
Converts all arguments given to the constructor using the givenArgumentConverter
.- Parameters:
argumentConverter
- an converter to change any argument into an other representation
-
getArguments
public Object[] getArguments()
-
-