Class Quantity

java.lang.Object
net.sf.basedb.core.BasicItem
net.sf.basedb.core.Quantity
All Implemented Interfaces:
AccessControlled, Identifiable, Nameable, Removable, SystemItem

public class Quantity
extends BasicItem
implements Nameable, SystemItem, Removable
This class is used to represent a quantity for specifying units to annotations.
Version:
2.9
Author:
Nicklas
See Also:
Unit, Essentials of the SI: Base & derived units
Last modified
$Date: 2017-05-22 14:35:27 +0200 (må, 22 maj 2017) $
  • Field Details

    • TYPE

      public static final Item TYPE
      The type of item represented by this class.
      See Also:
      Item.QUANTITY, getType()
    • LENGTH

      public static final String LENGTH
      The id for the Quantity object representing length.
      See Also:
      "http://physics.nist.gov/cuu/Units/meter.html", Constant Field Values
    • MASS

      public static final String MASS
      The id for the Quantity object representing mass.
      See Also:
      "http://physics.nist.gov/cuu/Units/kilogram.html", Constant Field Values
    • TIME

      public static final String TIME
      The id for the Quantity object representing time.
      See Also:
      "http://physics.nist.gov/cuu/Units/second.html", Constant Field Values
    • TEMPERATURE

      public static final String TEMPERATURE
      The id for the Quantity object representing temperature.
      See Also:
      "http://physics.nist.gov/cuu/Units/kelvin.html", Constant Field Values
    • CURRENT

      public static final String CURRENT
      The id for the Quantity object representing electric current.
      See Also:
      "http://physics.nist.gov/cuu/Units/ampere.html", Constant Field Values
    • SUBSTANCE

      public static final String SUBSTANCE
      The id for the Quantity object representing "amount of substance".
      See Also:
      "http://physics.nist.gov/cuu/Units/mole.html", Constant Field Values
    • AREA

      public static final String AREA
      The id for the Quantity object representing area.
      See Also:
      "http://en.wikipedia.org/wiki/Area", Constant Field Values
    • VOLUME

      public static final String VOLUME
      The id for the Quantity object representing volume.
      See Also:
      "http://en.wikipedia.org/wiki/Volume", Constant Field Values
    • VELOCITY

      public static final String VELOCITY
      The id for the Quantity object representing velocity.
      See Also:
      "http://en.wikipedia.org/wiki/Speed", Constant Field Values
    • ANGLE

      public static final String ANGLE
      The id for the Quantity object representing angle.
      See Also:
      "http://en.wikipedia.org/wiki/Radian", Constant Field Values
    • FORCE

      public static final String FORCE
      The id for the Quantity object representing force.
      See Also:
      "http://en.wikipedia.org/wiki/Newton", Constant Field Values
    • FREQUENCY

      public static final String FREQUENCY
      The id for the Quantity object representing frequency.
      See Also:
      "http://en.wikipedia.org/wiki/Newton", Constant Field Values
    • DENSITY

      public static final String DENSITY
      The id for the Quantity object representing density.
      See Also:
      "http://en.wikipedia.org/wiki/Density", Constant Field Values
    • ENERGY

      public static final String ENERGY
      The id for the Quantity object representing energy.
      See Also:
      "http://en.wikipedia.org/wiki/Joule", Constant Field Values
    • POWER

      public static final String POWER
      The id for the Quantity object representing power.
      See Also:
      "http://en.wikipedia.org/wiki/Watt", Constant Field Values
    • PRESSURE

      public static final String PRESSURE
      The id for the Quantity object representing pressure.
      See Also:
      "http://en.wikipedia.org/wiki/Pascal_(unit)", Constant Field Values
    • POTENTIAL

      public static final String POTENTIAL
      The id for the Quantity object representing electrical potential.
      See Also:
      "http://en.wikipedia.org/wiki/Volt", Constant Field Values
    • RESISTANCE

      public static final String RESISTANCE
      The id for the Quantity object representing electrical resistance.
      See Also:
      "http://en.wikipedia.org/wiki/Ohm", Constant Field Values
    • CHARGE

      public static final String CHARGE
      The id for the Quantity object representing electrical charge.
      See Also:
      "http://en.wikipedia.org/wiki/Coulomb", Constant Field Values
    • CAPACITANCE

      public static final String CAPACITANCE
      The id for the Quantity object representing capacitance.
      See Also:
      "http://en.wikipedia.org/wiki/Farad", Constant Field Values
    • MAGNETIC_FIELD

      public static final String MAGNETIC_FIELD
      The id for the Quantity object representing magnetic field.
      See Also:
      "http://en.wikipedia.org/wiki/Tesla_(unit)", Constant Field Values
    • MAGNETIC_FLUX

      public static final String MAGNETIC_FLUX
      The id for the Quantity object representing magnetic flux.
      See Also:
      "http://en.wikipedia.org/wiki/Weber_(unit)", Constant Field Values
    • ABSORBED_DOSE

      public static final String ABSORBED_DOSE
      The id for the Quantity object representing absorbed dose.
      See Also:
      "http://en.wikipedia.org/wiki/Gray_(unit)", Constant Field Values
    • EQUIVALENT_DOSE

      public static final String EQUIVALENT_DOSE
      The id for the Quantity object representing equivalent dose.
      See Also:
      "http://en.wikipedia.org/wiki/Sievert", Constant Field Values
    • RADIOACTIVITY

      public static final String RADIOACTIVITY
      The id for the Quantity object representing radioactivity.
      See Also:
      "http://en.wikipedia.org/wiki/Becquerel", Constant Field Values
    • FRACTION

      public static final String FRACTION
      The id for the Quantity object representing fractions.
      See Also:
      "http://en.wikipedia.org/wiki/Parts-per_notation", Constant Field Values
    • ACCELERATION

      public static final String ACCELERATION
      The id for the Quantity object representing acceleration.
      See Also:
      "http://en.wikipedia.org/wiki/Acceleration", Constant Field Values
    • TORGUE

      public static final String TORGUE
      The id for the Quantity object representing torque.
      See Also:
      "http://en.wikipedia.org/wiki/Torque", Constant Field Values
    • MOMENTUM

      public static final String MOMENTUM
      The id for the Quantity object representing momentum.
      See Also:
      "http://en.wikipedia.org/wiki/Momentum", Constant Field Values
    • FLOW_RATE

      public static final String FLOW_RATE
      The id for the Quantity object representing flow rate.
      See Also:
      "http://en.wikipedia.org/wiki/Volumetric_flow_rate", Constant Field Values
    • THERMAL_CONDUCTIVITY

      public static final String THERMAL_CONDUCTIVITY
      The id for the Quantity object representing thermal conductivity.
      See Also:
      "http://en.wikipedia.org/wiki/Thermal_conductivity", Constant Field Values
    • STORAGE_SIZE

      public static final String STORAGE_SIZE
      The id for the Quantity object representing storage sizes.
      See Also:
      "http://en.wikipedia.org/wiki/Byte", Constant Field Values
    • MOLAR_CONCENTRATION

      public static final String MOLAR_CONCENTRATION
      The id for the Quantity object representing substance concentration.
      Since:
      3.11
      See Also:
      "https://en.wikipedia.org/wiki/Molar_concentration", Constant Field Values
    • MAX_REFERENCE_UNIT_LENGTH

      public static final int MAX_REFERENCE_UNIT_LENGTH
      The maximum length of the reference unit that can be stored in the database.
      See Also:
      setReferenceUnit(String), Constant Field Values
  • Constructor Details

    • Quantity

      Quantity​(QuantityData data)
      Creates a quantity item.
      Parameters:
      data - the data
  • Method Details