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 with Unit.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

    Constructors
    Constructor
    Description
    IdentifierMeasure(org.palladiosimulator.metricspec.Identifier identifier, javax.measure.unit.Unit<QUANTITY> unit)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    doubleValue(javax.measure.unit.Unit<QUANTITY> unit)
     
    javax.measure.unit.Unit<QUANTITY>
     
    org.palladiosimulator.metricspec.Identifier
     
    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.

    Methods inherited from class javax.measure.Measure

    compareTo, equals, floatValue, hashCode, intValue, longValue, toString, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 to QUANTITY.
      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 class javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY extends javax.measure.quantity.Quantity>
    • getUnit

      public javax.measure.unit.Unit<QUANTITY> getUnit()
      Specified by:
      getUnit in class javax.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 class javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY extends javax.measure.quantity.Quantity>
    • doubleValue

      public double doubleValue(javax.measure.unit.Unit<QUANTITY> unit)
      Specified by:
      doubleValue in interface javax.measure.Measurable<QUANTITY extends javax.measure.quantity.Quantity>
      Specified by:
      doubleValue in class javax.measure.Measure<org.palladiosimulator.metricspec.Identifier,QUANTITY extends javax.measure.quantity.Quantity>
    • 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.