Class IdentifierMeasure<QUANTITY extends javax.measure.quantity.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:
    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.
      • Methods inherited from class javax.measure.Measure

        compareTo, equals, floatValue, hashCode, intValue, longValue, toString, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf
    • 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 to QUANTITY.
        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 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.