Class IdentifierMeasure<QUANTITY extends javax.measure.quantity.Quantity>
java.lang.Object
javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY>
org.palladiosimulator.measurementframework.measure.IdentifierMeasure<QUANTITY>
- Type Parameters:
QUANTITY
- the quantity to be used, e.g.,Dimensionless
withUnit.ONE
.
- All Implemented Interfaces:
Serializable
,Comparable<javax.measure.Measurable<QUANTITY>>
,javax.measure.Measurable<QUANTITY>
public class IdentifierMeasure<QUANTITY extends javax.measure.quantity.Quantity>
extends javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY>
Holds
Identifier
values that are used to characterize textual base metrics.- See Also:
-
Constructor Summary
ConstructorDescriptionIdentifierMeasure
(org.palladiosimulator.metricspec.Identifier identifier, javax.measure.unit.Unit<QUANTITY> unit) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptiondouble
doubleValue
(javax.measure.unit.Unit<QUANTITY> unit) javax.measure.unit.Unit<QUANTITY>
getUnit()
org.palladiosimulator.metricspec.Identifier
getValue()
javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,
QUANTITY> static <Q extends javax.measure.quantity.Quantity>
IdentifierMeasure<Q>valueOf
(org.palladiosimulator.metricspec.Identifier identifier, javax.measure.unit.Unit<Q> unit) Factory for IdentifierMeasures based on the given identifier and unit.Methods inherited from class javax.measure.Measure
compareTo, equals, floatValue, hashCode, intValue, longValue, toString, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf
-
Constructor Details
-
IdentifierMeasure
public IdentifierMeasure(org.palladiosimulator.metricspec.Identifier identifier, javax.measure.unit.Unit<QUANTITY> unit) Default constructor. Initializes this measure based on a given identifier and a unit conforming toQUANTITY
.- Parameters:
identifier
- the identifier used for initialization.unit
- the unit used for initialization.
-
-
Method Details
-
getValue
public org.palladiosimulator.metricspec.Identifier getValue()- Specified by:
getValue
in classjavax.measure.Measure<org.palladiosimulator.metricspec.Identifier,
QUANTITY extends javax.measure.quantity.Quantity>
-
getUnit
- Specified by:
getUnit
in classjavax.measure.Measure<org.palladiosimulator.metricspec.Identifier,
QUANTITY extends javax.measure.quantity.Quantity>
-
to
public javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY> to(javax.measure.unit.Unit<QUANTITY> unit) - Specified by:
to
in classjavax.measure.Measure<org.palladiosimulator.metricspec.Identifier,
QUANTITY extends javax.measure.quantity.Quantity>
-
doubleValue
-
valueOf
public static <Q extends javax.measure.quantity.Quantity> IdentifierMeasure<Q> valueOf(org.palladiosimulator.metricspec.Identifier identifier, javax.measure.unit.Unit<Q> unit) Factory for IdentifierMeasures based on the given identifier and unit.- Type Parameters:
Q
- the quantity to be used.- Parameters:
identifier
- the identifier used for initialization.unit
- the unit used for initialization.- Returns:
- a newly created IdentifierMeasure object.
-