org.jcamp.units.IMeasurable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcamp-dx Show documentation
Show all versions of jcamp-dx Show documentation
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);
}