test_class.file: singa-features/src/test/java/bio/singa/features/units/UnitRegistryTest.java
test_class.identifier: UnitRegistryTest
test_case.body: @Test
      public void testTimeScale() {
          Unit<?> first = ONE.divide(NANO(MOLE).divide(LITRE).multiply(MINUTE));
          assertEquals(-1, UnitRegistry.getTimeExponent(first));
          Unit<?> second = CENTI(METRE).pow(2);
          assertEquals(0, UnitRegistry.getTimeExponent(second));
      }
test_case.class_method_signature: UnitRegistryTest.testTimeScale()
test_case.full_signature: @Test public void testTimeScale()
test_case.identifier: testTimeScale
test_case.invocations: divide multiply divide NANO assertEquals getTimeExponent pow CENTI assertEquals getTimeExponent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTimeScale()
focal_class.declarator: DEFAULT_SPACE = Quantities.getQuantity(1.0, MICRO(METRE))
focal_class.modifier: public static final
focal_class.original_string: public static final Quantity<Length> DEFAULT_SPACE = Quantities.getQuantity(1.0, MICRO(METRE));
focal_class.type: Quantity<Length>
focal_class.var_name: DEFAULT_SPACE
focal_class.declarator: DEFAULT_TIME = Quantities.getQuantity(1.0, MICRO(SECOND))
focal_class.modifier: public static final
focal_class.original_string: public static final Quantity<Time> DEFAULT_TIME = Quantities.getQuantity(1.0, MICRO(SECOND));
focal_class.type: Quantity<Time>
focal_class.var_name: DEFAULT_TIME
focal_class.declarator: DEFAULT_AMOUNT_OF_SUBSTANCE = Quantities.getQuantity(1.0, NANO(MOLE))
focal_class.modifier: public static final
focal_class.original_string: public static final Quantity<AmountOfSubstance> DEFAULT_AMOUNT_OF_SUBSTANCE = Quantities.getQuantity(1.0, NANO(MOLE));
focal_class.type: Quantity<AmountOfSubstance>
focal_class.var_name: DEFAULT_AMOUNT_OF_SUBSTANCE
focal_class.declarator: DEFAULT_TEMPERATURE_UNIT = KELVIN
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Temperature> DEFAULT_TEMPERATURE_UNIT = KELVIN;
focal_class.type: Unit<Temperature>
focal_class.var_name: DEFAULT_TEMPERATURE_UNIT
focal_class.declarator: DEFAULT_MASS_UNIT = GRAM
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Mass> DEFAULT_MASS_UNIT = GRAM;
focal_class.type: Unit<Mass>
focal_class.var_name: DEFAULT_MASS_UNIT
focal_class.declarator: DISPLAY_TIME = SECOND
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Time> DISPLAY_TIME = SECOND;
focal_class.type: Unit<Time>
focal_class.var_name: DISPLAY_TIME
focal_class.declarator: DISPLAY_VOLUME = LITRE
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Volume> DISPLAY_VOLUME = LITRE;
focal_class.type: Unit<Volume>
focal_class.var_name: DISPLAY_VOLUME
focal_class.declarator: DISPLAY_AMOUNT = MICRO(MOLE)
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<AmountOfSubstance> DISPLAY_AMOUNT = MICRO(MOLE);
focal_class.type: Unit<AmountOfSubstance>
focal_class.var_name: DISPLAY_AMOUNT
focal_class.declarator: DISPLAY_CONCENTRATION = MICRO_MOLE_PER_LITRE
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<MolarConcentration> DISPLAY_CONCENTRATION = MICRO_MOLE_PER_LITRE;
focal_class.type: Unit<MolarConcentration>
focal_class.var_name: DISPLAY_CONCENTRATION
focal_class.declarator: DISPLAY_LENGTH = MICRO(METRE)
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Length> DISPLAY_LENGTH = MICRO(METRE);
focal_class.type: Unit<Length>
focal_class.var_name: DISPLAY_LENGTH
focal_class.declarator: instance = getInstance()
focal_class.modifier: private static
focal_class.original_string: private static UnitRegistry instance = getInstance();
focal_class.type: UnitRegistry
focal_class.var_name: instance
focal_class.declarator: space
focal_class.modifier: private
focal_class.original_string: private Quantity<Length> space;
focal_class.type: Quantity<Length>
focal_class.var_name: space
focal_class.declarator: time
focal_class.modifier: private
focal_class.original_string: private Quantity<Time> time;
focal_class.type: Quantity<Time>
focal_class.var_name: time
focal_class.declarator: defaultUnits
focal_class.modifier: private
focal_class.original_string: private Map<Dimension, Unit> defaultUnits;
focal_class.type: Map<Dimension, Unit>
focal_class.var_name: defaultUnits
focal_class.declarator: displayUnits
focal_class.modifier: private
focal_class.original_string: private Map<Dimension, Unit> displayUnits;
focal_class.type: Map<Dimension, Unit>
focal_class.var_name: displayUnits
focal_class.file: singa-features/src/main/java/bio/singa/features/units/UnitRegistry.java
focal_class.identifier: UnitRegistry
focal_class.class_method_signature: UnitRegistry.UnitRegistry()
focal_class.full_signature: private  UnitRegistry()
focal_class.identifier: UnitRegistry
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  UnitRegistry()
focal_class.class_method_signature: UnitRegistry.getInstance()
focal_class.full_signature: private static UnitRegistry getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: UnitRegistry
focal_class.signature: UnitRegistry getInstance()
focal_class.class_method_signature: UnitRegistry.reinitialize()
focal_class.full_signature: public static void reinitialize()
focal_class.identifier: reinitialize
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reinitialize()
focal_class.class_method_signature: UnitRegistry.getSpace()
focal_class.full_signature: public static Quantity<Length> getSpace()
focal_class.identifier: getSpace
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Length>
focal_class.signature: Quantity<Length> getSpace()
focal_class.class_method_signature: UnitRegistry.setSpace(Quantity<Length> space)
focal_class.full_signature: public static void setSpace(Quantity<Length> space)
focal_class.identifier: setSpace
focal_class.modifiers: public static
focal_class.parameters: (Quantity<Length> space)
focal_class.return: void
focal_class.signature: void setSpace(Quantity<Length> space)
focal_class.class_method_signature: UnitRegistry.getSpaceScale()
focal_class.full_signature: public static double getSpaceScale()
focal_class.identifier: getSpaceScale
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getSpaceScale()
focal_class.class_method_signature: UnitRegistry.getSpaceToPixelScale()
focal_class.full_signature: public static double getSpaceToPixelScale()
focal_class.identifier: getSpaceToPixelScale
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getSpaceToPixelScale()
focal_class.class_method_signature: UnitRegistry.scaleSpaceToPixel(Quantity<Length> length)
focal_class.full_signature: public static double scaleSpaceToPixel(Quantity<Length> length)
focal_class.identifier: scaleSpaceToPixel
focal_class.modifiers: public static
focal_class.parameters: (Quantity<Length> length)
focal_class.return: double
focal_class.signature: double scaleSpaceToPixel(Quantity<Length> length)
focal_class.class_method_signature: UnitRegistry.getPixelToSpaceScale()
focal_class.full_signature: public static Quantity<Length> getPixelToSpaceScale()
focal_class.identifier: getPixelToSpaceScale
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Length>
focal_class.signature: Quantity<Length> getPixelToSpaceScale()
focal_class.class_method_signature: UnitRegistry.scalePixelToSpace(double length)
focal_class.full_signature: public static Quantity<Length> scalePixelToSpace(double length)
focal_class.identifier: scalePixelToSpace
focal_class.modifiers: public static
focal_class.parameters: (double length)
focal_class.return: Quantity<Length>
focal_class.signature: Quantity<Length> scalePixelToSpace(double length)
focal_class.class_method_signature: UnitRegistry.setSpaceScale(double scale)
focal_class.full_signature: public static void setSpaceScale(double scale)
focal_class.identifier: setSpaceScale
focal_class.modifiers: public static
focal_class.parameters: (double scale)
focal_class.return: void
focal_class.signature: void setSpaceScale(double scale)
focal_class.class_method_signature: UnitRegistry.getSpaceUnit()
focal_class.full_signature: public static Unit<Length> getSpaceUnit()
focal_class.identifier: getSpaceUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<Length>
focal_class.signature: Unit<Length> getSpaceUnit()
focal_class.class_method_signature: UnitRegistry.setSpaceUnit(Unit<Length> unit)
focal_class.full_signature: public static void setSpaceUnit(Unit<Length> unit)
focal_class.identifier: setSpaceUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<Length> unit)
focal_class.return: void
focal_class.signature: void setSpaceUnit(Unit<Length> unit)
focal_class.class_method_signature: UnitRegistry.resetSpace()
focal_class.full_signature: public static void resetSpace()
focal_class.identifier: resetSpace
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetSpace()
focal_class.class_method_signature: UnitRegistry.getTime()
focal_class.full_signature: public static Quantity<Time> getTime()
focal_class.identifier: getTime
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Time>
focal_class.signature: Quantity<Time> getTime()
focal_class.class_method_signature: UnitRegistry.setTime(Quantity<Time> time)
focal_class.full_signature: public static void setTime(Quantity<Time> time)
focal_class.identifier: setTime
focal_class.modifiers: public static
focal_class.parameters: (Quantity<Time> time)
focal_class.return: void
focal_class.signature: void setTime(Quantity<Time> time)
focal_class.class_method_signature: UnitRegistry.getTimeScale()
focal_class.full_signature: public static double getTimeScale()
focal_class.identifier: getTimeScale
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getTimeScale()
focal_class.class_method_signature: UnitRegistry.setTimeScale(double scale)
focal_class.full_signature: public static void setTimeScale(double scale)
focal_class.identifier: setTimeScale
focal_class.modifiers: public static
focal_class.parameters: (double scale)
focal_class.return: void
focal_class.signature: void setTimeScale(double scale)
focal_class.class_method_signature: UnitRegistry.getTimeUnit()
focal_class.full_signature: public static Unit<Time> getTimeUnit()
focal_class.identifier: getTimeUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<Time>
focal_class.signature: Unit<Time> getTimeUnit()
focal_class.class_method_signature: UnitRegistry.setTimeUnit(Unit<Time> unit)
focal_class.full_signature: public static void setTimeUnit(Unit<Time> unit)
focal_class.identifier: setTimeUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<Time> unit)
focal_class.return: void
focal_class.signature: void setTimeUnit(Unit<Time> unit)
focal_class.class_method_signature: UnitRegistry.resetTime()
focal_class.full_signature: public static void resetTime()
focal_class.identifier: resetTime
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetTime()
focal_class.class_method_signature: UnitRegistry.setUnit(Unit<?> unit)
focal_class.full_signature: public static void setUnit(Unit<?> unit)
focal_class.identifier: setUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: void
focal_class.signature: void setUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.getConcentrationUnit()
focal_class.full_signature: public static Unit<MolarConcentration> getConcentrationUnit()
focal_class.identifier: getConcentrationUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<MolarConcentration>
focal_class.signature: Unit<MolarConcentration> getConcentrationUnit()
focal_class.class_method_signature: UnitRegistry.getAreaUnit()
focal_class.full_signature: public static Unit<Area> getAreaUnit()
focal_class.identifier: getAreaUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<Area>
focal_class.signature: Unit<Area> getAreaUnit()
focal_class.class_method_signature: UnitRegistry.getArea()
focal_class.full_signature: public static Quantity<Area> getArea()
focal_class.identifier: getArea
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Area>
focal_class.signature: Quantity<Area> getArea()
focal_class.class_method_signature: UnitRegistry.getVolumeUnit()
focal_class.full_signature: public static Unit<Volume> getVolumeUnit()
focal_class.identifier: getVolumeUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<Volume>
focal_class.signature: Unit<Volume> getVolumeUnit()
focal_class.class_method_signature: UnitRegistry.getVolume()
focal_class.full_signature: public static Quantity<Volume> getVolume()
focal_class.identifier: getVolume
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Volume>
focal_class.signature: Quantity<Volume> getVolume()
focal_class.class_method_signature: UnitRegistry.concentration(double value)
focal_class.full_signature: public static Quantity<MolarConcentration> concentration(double value)
focal_class.identifier: concentration
focal_class.modifiers: public static
focal_class.parameters: (double value)
focal_class.return: Quantity<MolarConcentration>
focal_class.signature: Quantity<MolarConcentration> concentration(double value)
focal_class.class_method_signature: UnitRegistry.concentration(double value, Unit<MolarConcentration> unit)
focal_class.full_signature: public static Quantity<MolarConcentration> concentration(double value, Unit<MolarConcentration> unit)
focal_class.identifier: concentration
focal_class.modifiers: public static
focal_class.parameters: (double value, Unit<MolarConcentration> unit)
focal_class.return: Quantity<MolarConcentration>
focal_class.signature: Quantity<MolarConcentration> concentration(double value, Unit<MolarConcentration> unit)
focal_class.class_method_signature: UnitRegistry.humanReadable(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> humanReadable(Quantity<QuantityType> quantity)
focal_class.identifier: humanReadable
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> humanReadable(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.humanReadable(double concentration)
focal_class.full_signature: public static Quantity<MolarConcentration> humanReadable(double concentration)
focal_class.identifier: humanReadable
focal_class.modifiers: public static
focal_class.parameters: (double concentration)
focal_class.return: Quantity<MolarConcentration>
focal_class.signature: Quantity<MolarConcentration> humanReadable(double concentration)
focal_class.class_method_signature: UnitRegistry.scale(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> scale(Quantity<QuantityType> quantity)
focal_class.identifier: scale
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> scale(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.scaleForPixel(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> scaleForPixel(Quantity<QuantityType> quantity)
focal_class.identifier: scaleForPixel
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> scaleForPixel(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.scaleTime(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> scaleTime(Quantity<QuantityType> quantity)
focal_class.identifier: scaleTime
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> scaleTime(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.convert(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> convert(Quantity<QuantityType> quantity)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> convert(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.rescaleRegisteredUnits()
focal_class.full_signature: private static void rescaleRegisteredUnits()
focal_class.identifier: rescaleRegisteredUnits
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rescaleRegisteredUnits()
focal_class.class_method_signature: UnitRegistry.getDefaultUnit(Unit<UnitType> unit)
focal_class.full_signature: public static Unit<UnitType> getDefaultUnit(Unit<UnitType> unit)
focal_class.identifier: getDefaultUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<UnitType> unit)
focal_class.return: Unit<UnitType>
focal_class.signature: Unit<UnitType> getDefaultUnit(Unit<UnitType> unit)
focal_class.class_method_signature: UnitRegistry.addUnitForDimension(Dimension dimension, Map<Dimension, Unit> unitMap)
focal_class.full_signature: private static void addUnitForDimension(Dimension dimension, Map<Dimension, Unit> unitMap)
focal_class.identifier: addUnitForDimension
focal_class.modifiers: private static
focal_class.parameters: (Dimension dimension, Map<Dimension, Unit> unitMap)
focal_class.return: void
focal_class.signature: void addUnitForDimension(Dimension dimension, Map<Dimension, Unit> unitMap)
focal_class.class_method_signature: UnitRegistry.getPreferredUnit(Dimension baseDimension, int exponent, Map<Dimension, Unit> unitMap)
focal_class.full_signature: private static Unit getPreferredUnit(Dimension baseDimension, int exponent, Map<Dimension, Unit> unitMap)
focal_class.identifier: getPreferredUnit
focal_class.modifiers: private static
focal_class.parameters: (Dimension baseDimension, int exponent, Map<Dimension, Unit> unitMap)
focal_class.return: Unit
focal_class.signature: Unit getPreferredUnit(Dimension baseDimension, int exponent, Map<Dimension, Unit> unitMap)
focal_class.class_method_signature: UnitRegistry.getTimeExponent(Unit<?> unit)
focal_class.full_signature: public static int getTimeExponent(Unit<?> unit)
focal_class.identifier: getTimeExponent
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: int
focal_class.signature: int getTimeExponent(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.getSpaceExponent(Unit<?> unit)
focal_class.full_signature: public static int getSpaceExponent(Unit<?> unit)
focal_class.identifier: getSpaceExponent
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: int
focal_class.signature: int getSpaceExponent(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.getExponent(Unit<?> testUnit, Unit<?> requiredUnit)
focal_class.full_signature: private static int getExponent(Unit<?> testUnit, Unit<?> requiredUnit)
focal_class.identifier: getExponent
focal_class.modifiers: private static
focal_class.parameters: (Unit<?> testUnit, Unit<?> requiredUnit)
focal_class.return: int
focal_class.signature: int getExponent(Unit<?> testUnit, Unit<?> requiredUnit)
focal_class.class_method_signature: UnitRegistry.getDefaultUnits()
focal_class.full_signature: public static Map<Dimension, Unit> getDefaultUnits()
focal_class.identifier: getDefaultUnits
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Map<Dimension, Unit>
focal_class.signature: Map<Dimension, Unit> getDefaultUnits()
focal_class.class_method_signature: UnitRegistry.isTimeUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isTimeUnit(Unit<?> unit)
focal_class.identifier: isTimeUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isTimeUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.isInverseTimeUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isInverseTimeUnit(Unit<?> unit)
focal_class.identifier: isInverseTimeUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isInverseTimeUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.isLengthUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isLengthUnit(Unit<?> unit)
focal_class.identifier: isLengthUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isLengthUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.isSubstanceUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isSubstanceUnit(Unit<?> unit)
focal_class.identifier: isSubstanceUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isSubstanceUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.isConcentrationUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isConcentrationUnit(Unit<?> unit)
focal_class.identifier: isConcentrationUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isConcentrationUnit(Unit<?> unit)
focal_method.body: public static int getTimeExponent(Unit<?> unit) {
          return getExponent(unit, SECOND);
      }
focal_method.class_method_signature: UnitRegistry.getTimeExponent(Unit<?> unit)
focal_method.full_signature: public static int getTimeExponent(Unit<?> unit)
focal_method.identifier: getTimeExponent
focal_method.invocations: getExponent
focal_method.modifiers: public static
focal_method.parameters: (Unit<?> unit)
focal_method.return: int
focal_method.signature: int getTimeExponent(Unit<?> unit)