Class EuclideanDistanceExtension
java.lang.Object
org.palladiosimulator.edp2.distancemetrics.ui.extensions.EuclideanDistanceExtension
- All Implemented Interfaces:
DistanceMetricExtension
Class which is loaded by the extension point org.palladiosimulator.edp2.distancemetrics.ui
at startup. It contains all information needed to make the Euclidean Distance distance metric accessible.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.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.
-
Constructor Details
-
EuclideanDistanceExtension
public EuclideanDistanceExtension()
-
-
Method Details
-
getDistanceMetricName
Description copied from interface:DistanceMetricExtension
Returns the name of the distance metric.- Specified by:
getDistanceMetricName
in interfaceDistanceMetricExtension
- Returns:
- Returns the string representation of the name of the distance metric.
-
getDistanceMetricDescription
Description copied from interface:DistanceMetricExtension
Returns the description of the distance metric.- Specified by:
getDistanceMetricDescription
in 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:DistanceMetricExtension
This class forwards calculation parameters and is responsible for individual UI error handling of the extension.- Specified by:
calculateDistance
in 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.
-