1 9 package org.jscience.physics.models; 10 11 import javax.measure.converters.UnitConverter; 12 import javax.measure.units.BaseUnit; 13 import javax.measure.units.Dimension; 14 15 21 public class StandardModel extends PhysicalModel { 22 23 26 final static StandardModel INSTANCE = new StandardModel(); 27 28 31 protected StandardModel() { 32 } 33 34 37 public static void select() { 38 PhysicalModel.setCurrent(INSTANCE); 39 } 40 41 public Dimension getDimension(BaseUnit unit) { 43 return Dimension.Model.STANDARD.getDimension(unit); 44 } 45 46 public UnitConverter getTransform(BaseUnit unit) { 48 return Dimension.Model.STANDARD.getTransform(unit); 49 } 50 51 } | Popular Tags |