public class MetricsRefDecorator<T> extends java.lang.Object implements IDecorator<T,java.util.Map<MetricId,MetricValue>>, IMetricsDecorator<T>
Constructor and Description |
---|
MetricsRefDecorator(MetricsTreeDecorator baseDecorator) |
Modifier and Type | Method and Description |
---|---|
IDecorator<T,java.util.Map<MetricId,MetricValue>> |
clone() |
void |
copyDecoration(T target,
T oldTarget,
Decorations<?> oldDecorations) |
void |
copyDecoration(T target,
T oldTarget,
IDecorator<T,?> oldDecorator) |
void |
deriveDecoration(T target,
java.lang.Object oldTarget,
Decorations<?> oldDecorations) |
<T2> IDecorator<T2,java.util.Map<MetricId,MetricValue>> |
deriveDecorationInstance(java.lang.Class<T2> type) |
java.util.Map<MetricId,MetricValue> |
getDecoration(T target) |
java.lang.String |
getLabelName(java.util.Set<T> from,
java.util.Set<T> to,
MetricId key) |
java.lang.String |
getLabelName(T target,
MetricId key) |
MetricValue |
getMetric(java.util.Set<T> from,
java.util.Set<T> to,
MetricId key) |
MetricValue |
getMetric(T target,
MetricId key) |
double |
getMetricValue(java.util.Set<T> from,
java.util.Set<T> to,
MetricId key) |
double |
getMetricValue(T target,
MetricId key) |
java.lang.String |
getMetricValueString(java.util.Set<T> from,
java.util.Set<T> to,
MetricId key) |
java.lang.String |
getMetricValueString(T target,
MetricId key) |
boolean |
hasDecoration(T target) |
IDecorator<T,java.util.Map<MetricId,MetricValue>> |
newInstance() |
void |
removeDecoration(T target) |
void |
resetMetric(MetricId id) |
void |
setDecoration(T target,
java.util.Map<MetricId,MetricValue> decoration) |
void |
setMetric(IEPTreeNode target,
MetricId key,
MetricValue value) |
void |
setMetric(java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to,
MetricId key,
MetricValue value) |
public MetricsRefDecorator(MetricsTreeDecorator baseDecorator)
public boolean hasDecoration(T target)
hasDecoration
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
public java.util.Map<MetricId,MetricValue> getDecoration(T target)
getDecoration
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
public void setDecoration(T target, java.util.Map<MetricId,MetricValue> decoration)
setDecoration
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
public void removeDecoration(T target)
removeDecoration
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
public IDecorator<T,java.util.Map<MetricId,MetricValue>> clone()
clone
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
clone
in class java.lang.Object
public MetricValue getMetric(T target, MetricId key)
getMetric
in interface IMetricsDecorator<T>
public java.lang.String getLabelName(T target, MetricId key)
getLabelName
in interface IMetricsDecorator<T>
public double getMetricValue(T target, MetricId key)
getMetricValue
in interface IMetricsDecorator<T>
public java.lang.String getMetricValueString(T target, MetricId key)
getMetricValueString
in interface IMetricsDecorator<T>
public void setMetric(IEPTreeNode target, MetricId key, MetricValue value)
setMetric
in interface IMetricsDecorator<T>
public void resetMetric(MetricId id)
resetMetric
in interface IMetricsDecorator<T>
public java.lang.String getLabelName(java.util.Set<T> from, java.util.Set<T> to, MetricId key)
getLabelName
in interface IMetricsDecorator<T>
public MetricValue getMetric(java.util.Set<T> from, java.util.Set<T> to, MetricId key)
getMetric
in interface IMetricsDecorator<T>
public double getMetricValue(java.util.Set<T> from, java.util.Set<T> to, MetricId key)
getMetricValue
in interface IMetricsDecorator<T>
public java.lang.String getMetricValueString(java.util.Set<T> from, java.util.Set<T> to, MetricId key)
getMetricValueString
in interface IMetricsDecorator<T>
public void setMetric(java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, MetricId key, MetricValue value)
setMetric
in interface IMetricsDecorator<T>
public IDecorator<T,java.util.Map<MetricId,MetricValue>> newInstance()
newInstance
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
public <T2> IDecorator<T2,java.util.Map<MetricId,MetricValue>> deriveDecorationInstance(java.lang.Class<T2> type)
deriveDecorationInstance
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
public void copyDecoration(T target, T oldTarget, Decorations<?> oldDecorations)
copyDecoration
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
public void copyDecoration(T target, T oldTarget, IDecorator<T,?> oldDecorator)
copyDecoration
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>
public void deriveDecoration(T target, java.lang.Object oldTarget, Decorations<?> oldDecorations)
deriveDecoration
in interface IDecorator<T,java.util.Map<MetricId,MetricValue>>