T - The type of events in the traceU - The output type of the triaging functionpublic class CayleyDiameterCoverage<T extends Event,U> extends CayleyCoverageMetric<T,U,java.lang.Float>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_cumulative
Whether the cardinality considers all traces up to a given
length (true), or exactly of given length (false)
|
m_function, m_graph| Constructor and Description |
|---|
CayleyDiameterCoverage(CayleyGraph<T,U> graph,
TriagingFunction<T,U> function) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Float |
getCoverage(java.util.Set<Trace<T>> traces)
Gets the coverage of the set of traces according to the metric
|
void |
setCumulative(boolean b)
Sets whether the cardinality considers all traces up to a given
length (true), or exactly of given length (false)
|
getCoveredClasses, getCoveredClassesprotected boolean m_cumulative
public CayleyDiameterCoverage(CayleyGraph<T,U> graph, TriagingFunction<T,U> function)
public void setCumulative(boolean b)
b - public java.lang.Float getCoverage(java.util.Set<Trace<T>> traces)
CoverageMetricgetCoverage in class CoverageMetric<T extends Event,java.lang.Float>traces - The set of traces we wish to measure coverage forCopyright © Sylvain HallĂ©. All Rights Reserved.