ucar.unidata.metdata
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 Summary
 StringBuffer format(StringBuffer buf)
          Format this Quantity
 String getName()
          Get the name of this Quantity.
 boolean isAssignable(ucar.units.Unit unit)
          See if the Unit is assignable to this quantity.
 boolean isAssignable(Value value)
          See if a Value is assignable to this Quantity
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

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

StringBuffer format(StringBuffer buf)
Format this Quantity

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