All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jcamp.units.IMeasurable Maven / Gradle / Ivy

Go to download

The JCAMP-DX project is the reference implemention of the IUPAC JCAMP-DX spectroscopy data standard.

The newest version!
package org.jcamp.units;
/**
 * interface indicating that data is measurable,
 * e.g. has a phyiscal unit.
 * @author Thomas Weber
 */
public interface IMeasurable {
    /**
     * sets a new unit for measured data and converts values from old unit.
     * 
     * @param newUnit org.jcamp.units.Unit
     */
    void convertToUnit(Unit newUnit) throws UnitException;

    /**
     * gets the measure unit
     * @return Unit
     *
     * @author Thomas Weber
     */
    Unit getUnit();

    /**
     * sets the measure unit without data conversion
     * @param unit Unit
     *
     * @author Thomas Weber
     */
    void setUnit(Unit unit);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy