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>
HoldsIdentifier
values that are used to characterize textual base metrics.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentifierMeasure(org.palladiosimulator.metricspec.Identifier identifier, javax.measure.unit.Unit<QUANTITY> unit)
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
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>
to(javax.measure.unit.Unit<QUANTITY> unit)
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.
-
-
-
Constructor Detail
-
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 Detail
-
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
public javax.measure.unit.Unit<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
public double doubleValue(javax.measure.unit.Unit<QUANTITY> unit)
-
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.
-
-