Class MeasurementTestUtils
- java.lang.Object
-
- org.palladiosimulator.simulizar.test.commons.util.MeasurementTestUtils
-
public final class MeasurementTestUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description MeasurementTestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Q extends javax.measure.quantity.Quantity>
voidallDoubleMeasurementValuesMatch(org.palladiosimulator.edp2.models.ExperimentData.Measurement measurement, org.palladiosimulator.metricspec.BaseMetricDescription valueMetric, javax.measure.unit.Unit<Q> unit, org.hamcrest.Matcher<Double> matcher)
static <Q extends javax.measure.quantity.Quantity>
List<javax.measure.Measure<?,Q>>allMeasurementsOfMetric(org.palladiosimulator.edp2.models.ExperimentData.Measurement measurement, org.palladiosimulator.metricspec.BaseMetricDescription valueMetric)
static <Q extends javax.measure.quantity.Quantity>
voidallMeasurementValuesMatch(org.palladiosimulator.edp2.models.ExperimentData.Measurement measurement, org.palladiosimulator.metricspec.BaseMetricDescription valueMetric, org.hamcrest.Matcher<javax.measure.Measure<?,Q>> matcher)
static Optional<org.palladiosimulator.edp2.models.ExperimentData.Measurement>
getMeasurementOfAt(Collection<org.palladiosimulator.edp2.models.ExperimentData.Measurement> measurements, org.palladiosimulator.metricspec.MetricDescription metric, EObject location)
-
-
-
Method Detail
-
allDoubleMeasurementValuesMatch
public static <Q extends javax.measure.quantity.Quantity> void allDoubleMeasurementValuesMatch(org.palladiosimulator.edp2.models.ExperimentData.Measurement measurement, org.palladiosimulator.metricspec.BaseMetricDescription valueMetric, javax.measure.unit.Unit<Q> unit, org.hamcrest.Matcher<Double> matcher)
-
allMeasurementValuesMatch
public static <Q extends javax.measure.quantity.Quantity> void allMeasurementValuesMatch(org.palladiosimulator.edp2.models.ExperimentData.Measurement measurement, org.palladiosimulator.metricspec.BaseMetricDescription valueMetric, org.hamcrest.Matcher<javax.measure.Measure<?,Q>> matcher)
-
allMeasurementsOfMetric
public static <Q extends javax.measure.quantity.Quantity> List<javax.measure.Measure<?,Q>> allMeasurementsOfMetric(org.palladiosimulator.edp2.models.ExperimentData.Measurement measurement, org.palladiosimulator.metricspec.BaseMetricDescription valueMetric)
-
getMeasurementOfAt
public static Optional<org.palladiosimulator.edp2.models.ExperimentData.Measurement> getMeasurementOfAt(Collection<org.palladiosimulator.edp2.models.ExperimentData.Measurement> measurements, org.palladiosimulator.metricspec.MetricDescription metric, EObject location)
-
-