public class MetricsTreeDecorator extends AbstractDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>> implements IMetricsDecorator<IEPTreeNode>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<org.apache.commons.lang3.tuple.Pair<java.util.Set<IEPTreeNode>,java.util.Set<IEPTreeNode>>,java.util.Map<MetricId,MetricValue>> |
edgeDecorations |
decorations
Constructor and Description |
---|
MetricsTreeDecorator(ExecIntervalTreeDecorator decInt,
AlignMappingTreeDecorator decAlignMap) |
clone, copyDecoration, getDecoration, hasDecoration, removeDecoration, setDecoration, toString
protected final java.util.Map<org.apache.commons.lang3.tuple.Pair<java.util.Set<IEPTreeNode>,java.util.Set<IEPTreeNode>>,java.util.Map<MetricId,MetricValue>> edgeDecorations
public MetricsTreeDecorator(ExecIntervalTreeDecorator decInt, AlignMappingTreeDecorator decAlignMap)
public static IMetricsDecorator<IEPTreeNode> getDecorator(IEPTree tree)
public void registerMetric(IMetric metric)
public void setMetric(IEPTreeNode target, MetricId key, MetricValue value)
setMetric
in interface IMetricsDecorator<IEPTreeNode>
public MetricValue getMetric(IEPTreeNode target, MetricId key)
getMetric
in interface IMetricsDecorator<IEPTreeNode>
public double getMetricValue(IEPTreeNode target, MetricId key)
getMetricValue
in interface IMetricsDecorator<IEPTreeNode>
public java.lang.String getMetricValueString(IEPTreeNode target, MetricId key)
getMetricValueString
in interface IMetricsDecorator<IEPTreeNode>
public java.lang.String getLabelName(IEPTreeNode target, MetricId key)
getLabelName
in interface IMetricsDecorator<IEPTreeNode>
public void resetMetric(MetricId id)
resetMetric
in interface IMetricsDecorator<IEPTreeNode>
public java.lang.String getLabelName(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, MetricId key)
getLabelName
in interface IMetricsDecorator<IEPTreeNode>
public MetricValue getMetric(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, MetricId key)
getMetric
in interface IMetricsDecorator<IEPTreeNode>
public double getMetricValue(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, MetricId key)
getMetricValue
in interface IMetricsDecorator<IEPTreeNode>
public java.lang.String getMetricValueString(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, MetricId key)
getMetricValueString
in interface IMetricsDecorator<IEPTreeNode>
public void setMetric(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, MetricId key, MetricValue value)
setMetric
in interface IMetricsDecorator<IEPTreeNode>
public boolean hasEdgeDecoration(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to)
public java.util.Map<MetricId,MetricValue> getEdgeDecoration(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to)
public void setEdgeDecoration(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, java.util.Map<MetricId,MetricValue> decoration)
public void removeEdgeDecoration(IEPTreeNode enabled, IEPTreeNode target)
public IDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>> newInstance()
newInstance
in interface IDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>>
newInstance
in class AbstractDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>>
public <T2> IDecorator<T2,java.util.Map<MetricId,MetricValue>> deriveDecorationInstance(java.lang.Class<T2> type)
deriveDecorationInstance
in interface IDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>>
deriveDecorationInstance
in class AbstractDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>>
public void copyDecoration(IEPTreeNode target, IEPTreeNode oldTarget, IDecorator<IEPTreeNode,?> oldDecorator)
copyDecoration
in interface IDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>>
copyDecoration
in class AbstractDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>>
public void deriveDecoration(IEPTreeNode target, java.lang.Object oldTarget, Decorations<?> oldDecorations)
deriveDecoration
in interface IDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>>
deriveDecoration
in class AbstractDecorator<IEPTreeNode,java.util.Map<MetricId,MetricValue>>