package usda.weru.weps.fuel;

import javax.measure.quantity.Quantity;
import javax.measure.quantity.Volume;
import javax.measure.unit.Unit;
import org.jscience.economics.money.Money;

/**
 * JScience quantity to express values that are a price/volume.
 * @author josephalevin
 */
public interface PricePerVolume extends Quantity{

    /**
     * Required for the JScience unit framework.  This static field is reflected
     * at runtime to determine if a conversion between units is possible.
     */
    @SuppressWarnings("unchecked")
    public static final Unit<PricePerVolume> UNIT = (Unit<PricePerVolume>) Money.BASE_UNIT.divide(Volume.UNIT);

}
