Class EditDistanceOnRealSequenceExtension

    • Constructor Detail

      • EditDistanceOnRealSequenceExtension

        public EditDistanceOnRealSequenceExtension()
    • Method Detail

      • getPropertiesWidget

        public PropertiesWidget getPropertiesWidget​(Composite parent,
                                                    int style)
        Description copied from interface: PropertyAccess
        Must return a self-implemented PropertiesWidget, which can set the properties of its distance metric.
        Specified by:
        getPropertiesWidget in interface PropertyAccess
        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.
      • 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: DistanceMetricExtension
        This class forwards calculation parameters and is responsible for individual UI error handling of the extension.
        Specified by:
        calculateDistance in interface DistanceMetricExtension
        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.