Class EditDistanceOnRealSequenceExtension
- java.lang.Object
-
- org.palladiosimulator.edp2.distancemetrics.ui.extensions.EditDistanceOnRealSequenceExtension
-
- All Implemented Interfaces:
DistanceMetricExtension,PropertyAccess
public class EditDistanceOnRealSequenceExtension extends Object implements DistanceMetricExtension, PropertyAccess
Class which is loaded by the extension point org.palladiosimulator.edp2.distancemetrics.ui at startup. It contains all information needed to make the EDR distance metric accessible.
-
-
Constructor Summary
Constructors Constructor Description EditDistanceOnRealSequenceExtension()
-
Method Summary
All Methods Instance Methods Concrete 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.PropertiesWidgetgetPropertiesWidget(Composite parent, int style)Must return a self-implemented PropertiesWidget, which can set the properties of its distance metric.
-
-
-
Method Detail
-
getPropertiesWidget
public PropertiesWidget getPropertiesWidget(Composite parent, int style)
Description copied from interface:PropertyAccessMust return a self-implemented PropertiesWidget, which can set the properties of its distance metric.- Specified by:
getPropertiesWidgetin interfacePropertyAccess- Parameters:
parent- Composite, the properties should be drawn on.style- Style of the DynamicTimeWarpingProperties which inherits ScrolledComposite widget.- Returns:
- A self-implemented PropertiesWidget to be displayed in the UI.
-
getDistanceMetricName
public String getDistanceMetricName()
Description copied from interface:DistanceMetricExtensionReturns the name of the distance metric.- Specified by:
getDistanceMetricNamein interfaceDistanceMetricExtension- Returns:
- Returns the string representation of the name of the distance metric.
-
getDistanceMetricDescription
public String getDistanceMetricDescription()
Description copied from interface:DistanceMetricExtensionReturns the description of the distance metric.- Specified by:
getDistanceMetricDescriptionin interfaceDistanceMetricExtension- Returns:
- Returns the string representation of the description of the distance metric.
-
calculateDistance
public org.jscience.physics.amount.Amount<? extends javax.measure.quantity.Quantity> calculateDistance(IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s1, IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s2)
Description copied from interface:DistanceMetricExtensionThis class forwards calculation parameters and is responsible for individual UI error handling of the extension.- Specified by:
calculateDistancein interfaceDistanceMetricExtension- 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.
-
-