public abstract class AbstractMetric extends java.lang.Object implements IMetric
Modifier and Type | Field and Description |
---|---|
protected ExecIntervalTreeDecorator |
decInt |
protected IMetricValueConvertor |
valueConvertor |
Constructor and Description |
---|
AbstractMetric(java.lang.String id,
java.lang.String name,
java.lang.String shortName) |
AbstractMetric(java.lang.String id,
java.lang.String name,
java.lang.String shortName,
IMetricValueConvertor valueConvertor) |
Modifier and Type | Method and Description |
---|---|
MetricId |
getId() |
java.lang.String |
getLabelName(IMetricsDecorator<IEPTreeNode> decMetric,
IEPTreeNode context) |
java.lang.String |
getLabelName(IMetricsDecorator<IEPTreeNode> decMetric,
java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to) |
MetricValue |
getMetric(IMetricsDecorator<IEPTreeNode> decMetric,
IEPTreeNode target) |
MetricValue |
getMetric(IMetricsDecorator<IEPTreeNode> decMetric,
java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to) |
double |
getMetricValue(IMetricsDecorator<IEPTreeNode> decMetric,
IEPTreeNode target) |
double |
getMetricValue(IMetricsDecorator<IEPTreeNode> decMetric,
java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to) |
java.lang.String |
getMetricValueString(IMetricsDecorator<IEPTreeNode> decMetric,
IEPTreeNode target) |
java.lang.String |
getMetricValueString(IMetricsDecorator<IEPTreeNode> decMetric,
java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to) |
java.lang.String |
getName() |
IMetricValueConvertor |
getValueConvertor() |
IMetricValueConvertor |
getValueConvertor(MetricValueScale.StatMode statMode) |
protected boolean |
moveEqualsNode(org.processmining.xesalignmentextension.XAlignmentExtension.XAlignmentMove move,
IEPTreeNode node) |
protected boolean |
moveInNodes(org.processmining.xesalignmentextension.XAlignmentExtension.XAlignmentMove move,
java.util.Set<IEPTreeNode> nodes) |
void |
setDecorators(ExecIntervalTreeDecorator decInt,
AlignMappingTreeDecorator decAlignMap) |
protected void |
setMetric(IMetricsDecorator<IEPTreeNode> decMetric,
IEPTreeNode target,
double value) |
protected void |
setMetric(IMetricsDecorator<IEPTreeNode> decMetric,
IEPTreeNode target,
long value) |
protected void |
setMetric(IMetricsDecorator<IEPTreeNode> decMetric,
IEPTreeNode target,
MetricValue value) |
protected void |
setMetric(IMetricsDecorator<IEPTreeNode> decMetric,
IEPTreeNode target,
org.apache.commons.math3.stat.descriptive.StatisticalSummary value) |
protected void |
setMetric(IMetricsDecorator<IEPTreeNode> decMetric,
java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to,
double value) |
protected void |
setMetric(IMetricsDecorator<IEPTreeNode> decMetric,
java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to,
long value) |
protected void |
setMetric(IMetricsDecorator<IEPTreeNode> decMetric,
java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to,
MetricValue value) |
protected void |
setMetric(IMetricsDecorator<IEPTreeNode> decMetric,
java.util.Set<IEPTreeNode> from,
java.util.Set<IEPTreeNode> to,
org.apache.commons.math3.stat.descriptive.StatisticalSummary value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeForEdge, computeForNode
protected ExecIntervalTreeDecorator decInt
protected IMetricValueConvertor valueConvertor
public AbstractMetric(java.lang.String id, java.lang.String name, java.lang.String shortName)
public AbstractMetric(java.lang.String id, java.lang.String name, java.lang.String shortName, IMetricValueConvertor valueConvertor)
public void setDecorators(ExecIntervalTreeDecorator decInt, AlignMappingTreeDecorator decAlignMap)
setDecorators
in interface IMetric
public IMetricValueConvertor getValueConvertor()
getValueConvertor
in interface IMetric
public IMetricValueConvertor getValueConvertor(MetricValueScale.StatMode statMode)
getValueConvertor
in interface IMetric
protected boolean moveEqualsNode(org.processmining.xesalignmentextension.XAlignmentExtension.XAlignmentMove move, IEPTreeNode node)
protected boolean moveInNodes(org.processmining.xesalignmentextension.XAlignmentExtension.XAlignmentMove move, java.util.Set<IEPTreeNode> nodes)
public java.lang.String getLabelName(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode context)
getLabelName
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
protected void setMetric(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode target, long value)
protected void setMetric(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode target, double value)
protected void setMetric(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode target, org.apache.commons.math3.stat.descriptive.StatisticalSummary value)
protected void setMetric(IMetricsDecorator<IEPTreeNode> decMetric, IEPTreeNode target, MetricValue value)
public java.lang.String getLabelName(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to)
getLabelName
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
protected void setMetric(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, long value)
protected void setMetric(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, double value)
protected void setMetric(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, org.apache.commons.math3.stat.descriptive.StatisticalSummary value)
protected void setMetric(IMetricsDecorator<IEPTreeNode> decMetric, java.util.Set<IEPTreeNode> from, java.util.Set<IEPTreeNode> to, MetricValue value)