001 package ui.recognizer; 002 003 import java.io.*; 004 import java.util.List; 005 import java.util.ArrayList; 006 007 /** A collection of constants related to units such as distance weight etc... 008 * 009 * @author John Talbot 010 */ 011 public interface Units { 012 013 /** The factor that the wavelength unit must be multiplied by to obtain meters given that the units are angstroms. */ 014 public static final double ANGSTROMS = 1.0e-10; 015 016 /** The factor that the wavelength unit must be multiplied by to obtain meters given that the units are nanometers. */ 017 public static final double NANOMETERS = 1.0e-9; 018 019 /** The factor that the wavelength unit must be multiplied by to obtain meters given that the units are microns. */ 020 public static final double MICRONS = 1.0e-6; 021 022 /** The factor that the wavelength unit must be multiplied by to obtain meters given that the units are meters. */ 023 public static final double METERS = 1.0d; 024 025 }