KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public final class AntiLambda extends Hyperon {
11         /**
12         * Constructs an antilambda.
13         */

14         public AntiLambda() {}
15         /**
16         * Returns the rest mass (MeV).
17         * @return 1115.683
18         */

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

24         public int spin() {return 1;}
25         /**
26         * Returns the number of 1/2 units of isospin.
27         * @return 0
28         */

29         public int isospin() {return 0;}
30         /**
31         * Returns the number of 1/2 units of the z-component of isospin.
32         * @return 0
33         */

34         public int isospinZ() {return 0;}
35         /**
36         * Returns the electric charge.
37         * @return 0
38         */

39         public int charge() {return 0;}
40         /**
41         * Returns the strangeness number.
42         * @return 1
43         */

44         public int strangeQN() {return 1;}
45         /**
46         * Returns the quark composition.
47         */

48         public QuantumParticle[] quarks() {
49                 QuantumParticle comp[]={new AntiUp(),new AntiDown(),new AntiStrange()};
50                 return comp;
51         }
52         /**
53         * Returns the antiparticle of this particle.
54         */

55         public QuantumParticle anti() {
56                 return new Lambda();
57         }
58         /**
59         * Returns true if qp is the antiparticle.
60         */

61         public boolean isAnti(QuantumParticle qp) {
62                 return (qp!=null) && (qp instanceof Lambda);
63         }
64         /**
65         * Returns a string representing this class.
66         */

67         public String JavaDoc toString() {
68                 return new String JavaDoc("Antilambda");
69         }
70 }
71
72
Popular Tags