Interface Unit

All Superinterfaces:
ModelElement, NamedElement
All Known Implementing Classes:
DefaultUnit

public interface Unit extends NamedElement
A physical unit.
Since:
SAMM 1.0.0
  • Method Details

    • getSymbol

      Optional<String> getSymbol()
      Returns the unit's symbol
    • getCode

      Optional<String> getCode()
      Returns the unit's common code, as described in UNECE Recommendation 20
    • getReferenceUnit

      Optional<String> getReferenceUnit()
      Return the unit's reference unit for unit conversions
    • getConversionFactor

      Optional<String> getConversionFactor()
      Return the unit's conversion factor for unit conversions
    • getQuantityKinds

      Set<QuantityKind> getQuantityKinds()
      Return the unit's quantity kinds