Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<MetricValue> |
SwitchOnEmptyValue |
protected IMetricValueConvertor |
valueConvertor |
Constructor and Description |
---|
SwitchMetric(java.lang.String id,
java.lang.String name,
java.lang.String shortName,
IMetric firstMetric,
IMetric secondMetric) |
SwitchMetric(java.lang.String id,
java.lang.String name,
java.lang.String shortName,
IMetric firstMetric,
IMetric secondMetric,
com.google.common.base.Predicate<MetricValue> switchToSecondMetric,
IMetricValueConvertor valueConvertor) |
public static final com.google.common.base.Predicate<MetricValue> SwitchOnEmptyValue
protected IMetricValueConvertor valueConvertor
public SwitchMetric(java.lang.String id, java.lang.String name, java.lang.String shortName, IMetric firstMetric, IMetric secondMetric)
public SwitchMetric(java.lang.String id, java.lang.String name, java.lang.String shortName, IMetric firstMetric, IMetric secondMetric, com.google.common.base.Predicate<MetricValue> switchToSecondMetric, IMetricValueConvertor valueConvertor)
public IMetric getFirstMetric()
public IMetric getSecondMetric()
public void setDecorators(ExecIntervalTreeDecorator decInt, AlignMappingTreeDecorator decAlignMap)
setDecorators
in interface IMetric
public java.lang.String getLabelName(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode context)
getLabelName
in interface IMetric
public boolean computeForNode(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode target)
computeForNode
in interface IMetric
public MetricValue getMetric(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode target)
public double getMetricValue(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode target)
getMetricValue
in interface IMetric
public java.lang.String getMetricValueString(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode target)
getMetricValueString
in interface IMetric
public IMetricValueConvertor getValueConvertor()
getValueConvertor
in interface IMetric
public IMetricValueConvertor getValueConvertor(MetricValueScale.StatMode statMode)
getValueConvertor
in interface IMetric
public java.lang.String getLabelName(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to)
getLabelName
in interface IMetric
public boolean computeForEdge(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to)
computeForEdge
in interface IMetric
public MetricValue getMetric(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to)
public double getMetricValue(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to)
getMetricValue
in interface IMetric
public java.lang.String getMetricValueString(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to)
getMetricValueString
in interface IMetric