Interface DistanceMetricExtension
-
- All Known Implementing Classes:
DynamicTimeWarpingExtension,EditDistanceOnRealSequenceExtension,EuclideanDistanceExtension
public interface DistanceMetricExtensionYour 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
All Methods Instance Methods Abstract Methods 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.StringgetDistanceMetricDescription()Returns the description of the distance metric.StringgetDistanceMetricName()Returns the name of the distance metric.
-
-
-
Method Detail
-
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.
-
-