1 9 package org.jscience.physics.quantities; 10 11 import static org.jscience.physics.units.SI.*; 12 import org.jscience.physics.units.Unit; 13 14 21 public class Acceleration extends Quantity { 22 23 26 private final static Unit<Acceleration> UNIT = METER.divide(SECOND.pow(2)); 27 28 31 private final static Factory<Acceleration> FACTORY = new Factory<Acceleration>( 32 UNIT) { 33 protected Acceleration create() { 34 return new Acceleration(); 35 } 36 }; 37 38 41 public final static Acceleration ZERO = Quantity.valueOf(0, UNIT); 42 43 46 public final static Acceleration GRAVITY = Quantity.valueOf(9.80665, UNIT); 47 48 51 protected Acceleration() { 52 } 53 54 59 public static void showAs(Unit unit) { 60 QuantityFormat.show(Acceleration.class, unit); 61 } 62 63 private static final long serialVersionUID = 1L; 64 } | Popular Tags |