KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jscience > physics > quantities > AngularAcceleration


1 /*
2  * JScience - Java(TM) Tools and Libraries for the Advancement of Sciences.
3  * Copyright (C) 2005 - JScience (http://jscience.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 package org.jscience.physics.quantities;
10 import org.jscience.physics.units.SI;
11 import org.jscience.physics.units.Unit;
12
13 /**
14  * This class represents the rate of change of angular velocity with respect
15  * to time. The system unit for this quantity is "rad/s²".
16  *
17  * @author <a HREF="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
18  * @version 1.0, October 24, 2004
19  */

20 public class AngularAcceleration extends Quantity {
21
22     /**
23      * Holds the associated unit.
24      */

25     private final static Unit<AngularAcceleration>
26          SYSTEM_UNIT = SI.RADIAN.divide(SI.SECOND.pow(2));
27
28     /**
29      * Holds the associated unit.
30      */

31     private final static Unit<AngularAcceleration> UNIT = SI.RADIAN.divide(SI.SECOND.pow(2));
32
33     /**
34      * Holds the factory for this class.
35      */

36     private final static Factory<AngularAcceleration> FACTORY = new Factory<AngularAcceleration>(
37             UNIT) {
38         protected AngularAcceleration create() {
39             return new AngularAcceleration();
40         }
41     };
42
43     /**
44      * Represents a {@link AngularAcceleration} amounting to nothing.
45      */

46     public final static AngularAcceleration ZERO = Quantity.valueOf(0, UNIT);
47
48     /**
49      * Default constructor (allows for derivation).
50      */

51     protected AngularAcceleration() {
52     }
53
54     /**
55      * Shows {@link AngularAcceleration} instances in the specified unit.
56      *
57      * @param unit the display unit for {@link AngularAcceleration} instances.
58      */

59     public static void showAs(Unit unit) {
60         QuantityFormat.show(AngularAcceleration.class, unit);
61     }
62
63     private static final long serialVersionUID = 1L;
64 }
65
Popular Tags