Interface DistanceMetricExtension

All Known Implementing Classes:
DynamicTimeWarpingExtension, EditDistanceOnRealSequenceExtension, EuclideanDistanceExtension

public interface DistanceMetricExtension
Your class will be called by createExecutableExtension, once it has implemented this interface and is listed by the extension point org.palladiosimulator.edp2.distancemetrics.algorithms createExecutableExtension does not allow the use of any other constructor than the standard constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jscience.physics.amount.Amount<? extends javax.measure.quantity.Quantity>
    calculateDistance(IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s1, IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s2)
    This class forwards calculation parameters and is responsible for individual UI error handling of the extension.
    Returns the description of the distance metric.
    Returns the name of the distance metric.
  • Method Details

    • getDistanceMetricName

      String getDistanceMetricName()
      Returns the name of the distance metric.
      Returns:
      Returns the string representation of the name of the distance metric.
    • getDistanceMetricDescription

      String getDistanceMetricDescription()
      Returns the description of the distance metric.
      Returns:
      Returns the string representation of the description of the distance metric.
    • calculateDistance

      org.jscience.physics.amount.Amount<? extends javax.measure.quantity.Quantity> calculateDistance(IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s1, IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s2)
      This class forwards calculation parameters and is responsible for individual UI error handling of the extension.
      Parameters:
      s1 - First stream of measurement to compare.
      s2 - Second stream of measurement to compare.
      Returns:
      Return a generic Amount which can contain any Quantity. Returns null, if calcuation couldn't be executed.