QUANTITY
- the quantity to be used, e.g., Dimensionless
with Unit.ONE
.public class IdentifierMeasure<QUANTITY extends javax.measure.quantity.Quantity>
extends javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY>
Identifier
values that are used to characterize textual base metrics.Constructor and Description |
---|
IdentifierMeasure(org.palladiosimulator.metricspec.Identifier identifier,
javax.measure.unit.Unit<QUANTITY> unit)
Default constructor.
|
Modifier and Type | Method and 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> |
valueOf(org.palladiosimulator.metricspec.Identifier identifier,
javax.measure.unit.Unit<Q> unit)
Factory for IdentifierMeasures based on the given identifier and unit.
|
public IdentifierMeasure(org.palladiosimulator.metricspec.Identifier identifier, javax.measure.unit.Unit<QUANTITY> unit)
QUANTITY
.identifier
- the identifier used for initialization.unit
- the unit used for initialization.public org.palladiosimulator.metricspec.Identifier getValue()
getValue
in class javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY extends javax.measure.quantity.Quantity>
public javax.measure.unit.Unit<QUANTITY> getUnit()
getUnit
in class javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY extends javax.measure.quantity.Quantity>
public javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY> to(javax.measure.unit.Unit<QUANTITY> unit)
to
in class javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY extends javax.measure.quantity.Quantity>
public double doubleValue(javax.measure.unit.Unit<QUANTITY> unit)
public static <Q extends javax.measure.quantity.Quantity> IdentifierMeasure<Q> valueOf(org.palladiosimulator.metricspec.Identifier identifier, javax.measure.unit.Unit<Q> unit)
Q
- the quantity to be used.identifier
- the identifier used for initialization.unit
- the unit used for initialization.