Interface Quantity

All Superinterfaces:
Comparable

public interface Quantity extends Comparable
Abstraction for physical quantity.
Version:
$Revision: 1.8 $ $Date: 2005/05/13 18:31:30 $
Author:
Glenn Davis
  • Method Details

    • getName

      String getName()
      Get the name of this Quantity.
      Returns:
      quantity name
    • isAssignable

      boolean isAssignable(ucar.units.Unit unit)
      See if the Unit is assignable to this quantity. i.e, is it a compatible unit
      Parameters:
      unit - Unit in question
      Returns:
      true if compatible
    • isAssignable

      boolean isAssignable(Value value)
      See if a Value is assignable to this Quantity
      Parameters:
      value - Value to check.
      Returns:
      true if it is assignable.
    • format

      Format this Quantity
      Parameters:
      buf - input/output buffer
      Returns:
      buf with formatted info