public final class ExpressionView extends Object
Associate a statistic expression with display information.
Statistic expressions are composed of statistic names (see
StatisticsIndexMap
) in a simple post-fix format using the symbols
+
, -
, /
and *
,
which have their usual meanings, in conjunction with simple statistic names
or sub-expressions. Precedence can be controlled by grouping expressions in
parentheses. For example, the error rate is
(* (/ errors period) 1000)
errors per second.
Sample statistics, such as timedTests, must be introduced with
one of sum
, count
, or variance
,
depending on the attribute of interest.
For example, the statistic expression (/ (sum timedTests)
(count timedTests))
represents the mean test time in milliseconds.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Value based equality.
|
String |
getDisplayName()
Get the common display name.
|
StatisticExpression |
getExpression()
Return the
StatisticExpression . |
String |
getExpressionString()
Return the expression string.
|
boolean |
getShowForCompositeStatistics()
Return whether this view is relevant for totals of composite statistics.
|
int |
hashCode()
Implement
Object.hashCode() . |
String |
toString()
Return a
String representation of this
ExpressionView . |
public String getDisplayName()
public StatisticExpression getExpression()
StatisticExpression
.StatisticExpression
.public String getExpressionString()
null
if this view was built directly
from a StatisticExpression
.public boolean getShowForCompositeStatistics()
true
=> show this view for composite statistics.public boolean equals(Object other)
public int hashCode()
Object.hashCode()
.Copyright © 2000-2014. All Rights Reserved.