public abstract class AbstractXMetricsMetadataExtension
extends org.deckfour.xes.extension.XExtension
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
KEY_ATTRIBUTE_TYPE_BIBTEX |
protected static java.lang.String |
KEY_ATTRIBUTE_TYPE_DOI |
protected static java.lang.String |
KEY_ATTRIBUTE_TYPE_REFERENCE |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXMetricsMetadataExtension(java.lang.String description,
java.lang.String prefix,
java.net.URI uri,
java.lang.String typekey)
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.deckfour.xes.model.XAttribute |
createMetricAttribute(LogMetricResult result)
This method creates and sets the attribute that stores the values of the
specified LogMetricResult result.
|
java.lang.String |
extractAttributeBibtex(org.deckfour.xes.model.XLog log,
java.lang.String metrickey) |
java.lang.String |
extractAttributeDoi(org.deckfour.xes.model.XLog log,
java.lang.String metrickey) |
java.lang.String |
extractAttributeReference(org.deckfour.xes.model.XLog log,
java.lang.String metrickey) |
double |
extractMetricValue(org.deckfour.xes.model.XLog log,
java.lang.String metrickey)
Get the specified log metric.
|
protected org.deckfour.xes.model.XAttributeMap |
getAllMetrics(org.deckfour.xes.model.XLog log)
Returns an XAttributeMap with XAttributeContinuous values.
|
protected org.deckfour.xes.model.XAttributeContinuous |
getMetric(org.deckfour.xes.model.XLog log,
java.lang.String metrickey) |
protected org.deckfour.xes.model.XAttribute |
getMetricAttribute(org.deckfour.xes.model.XLog log,
java.lang.String metrickey,
java.lang.String attributekey)
Retrieve the attribute of which the key was specified or throws a NullPointerException in case of attribute not found.
|
LogMetricType |
getType() |
java.lang.String |
getTypeKey() |
void |
putMetric(org.deckfour.xes.model.XAttributeMap attributes,
LogMetricResult result) |
void |
putMetric(org.deckfour.xes.model.XLog log,
LogMetricResult result)
Put new metric data in the log.
|
protected static final java.lang.String KEY_ATTRIBUTE_TYPE_DOI
protected static final java.lang.String KEY_ATTRIBUTE_TYPE_REFERENCE
protected static final java.lang.String KEY_ATTRIBUTE_TYPE_BIBTEX
protected AbstractXMetricsMetadataExtension(java.lang.String description,
java.lang.String prefix,
java.net.URI uri,
java.lang.String typekey)
public LogMetricType getType()
public java.lang.String getTypeKey()
protected org.deckfour.xes.model.XAttributeMap getAllMetrics(org.deckfour.xes.model.XLog log)
key - Key of which the attributes must be retrieved (e.g.
KEY_STRUCTUREDNESS)element - Element from which the attributes are retrieved.UnknownLogMetricTypeExceptionprotected org.deckfour.xes.model.XAttributeContinuous getMetric(org.deckfour.xes.model.XLog log,
java.lang.String metrickey)
throws MetricNotExistException
MetricNotExistExceptionprotected org.deckfour.xes.model.XAttribute getMetricAttribute(org.deckfour.xes.model.XLog log,
java.lang.String metrickey,
java.lang.String attributekey)
throws MetricNotExistException
log - The process log in which to search for the information.metrickey - The metric key under which to search for the attribute.attributekey - The key of the attribute.MetricNotExistException - Throws in case the metric was not found.UnknownLogMetricTypeException - Throws in case the type of metric is unknown.public double extractMetricValue(org.deckfour.xes.model.XLog log,
java.lang.String metrickey)
throws MetricNotExistException
log - The log instance to get it from.type - The type of log metric.metrickey - The key of the log metric, usually formatted as in
LogMetricResult ('name.key')MetricNotExistException - Thrown in case the metric is not available.UnknownLogMetricTypeException - Thrown in case an unknown log metric type is specified.public java.lang.String extractAttributeReference(org.deckfour.xes.model.XLog log,
java.lang.String metrickey)
throws MetricNotExistException
MetricNotExistExceptionpublic java.lang.String extractAttributeDoi(org.deckfour.xes.model.XLog log,
java.lang.String metrickey)
throws MetricNotExistException
MetricNotExistExceptionpublic java.lang.String extractAttributeBibtex(org.deckfour.xes.model.XLog log,
java.lang.String metrickey)
throws MetricNotExistException
MetricNotExistExceptionpublic void putMetric(org.deckfour.xes.model.XLog log,
LogMetricResult result)
log - The (target) log instanceresult - The LogMetricResult instance that contains the result.UnknownLogMetricTypeException - In case that an unknown type of log metric is specified this
exception is thrown.public void putMetric(org.deckfour.xes.model.XAttributeMap attributes,
LogMetricResult result)
protected org.deckfour.xes.model.XAttribute createMetricAttribute(LogMetricResult result)
result -