KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > physics > particles > Nucleon


1 package JSci.physics.particles;
2
3 import JSci.physics.quantum.QuantumParticle;
4
5 /**
6 * A class representing nucleons.
7 * @version 1.5
8 * @author Mark Hale
9 */

10 public abstract class Nucleon extends Baryon {
11         /**
12         * Constructs a nucleon.
13         */

14         public Nucleon() {}
15         /**
16         * Returns the number of 1/2 units of spin.
17         * @return 1
18         */

19         public final int spin() {return 1;}
20         /**
21         * Returns the number of 1/2 units of isospin.
22         * @return 1
23         */

24         public final int isospin() {return 1;}
25         /**
26         * Returns the strangeness number.
27         * @return 0
28         */

29         public final int strangeQN() {return 0;}
30 }
31
32
Popular Tags