KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public final class AntiMuonNeutrino extends AntiLepton {
11         /**
12         * Constructs an antimuon neutrino.
13         */

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

19         public double restMass() {return 0.0;}
20         /**
21         * Returns the electric charge.
22         * @return 0
23         */

24         public int charge() {return 0;}
25         /**
26         * Returns the electron lepton number.
27         * @return 0
28         */

29         public int eLeptonQN() {return 0;}
30         /**
31         * Returns the muon lepton number.
32         * @return -1
33         */

34         public int muLeptonQN() {return -1;}
35         /**
36         * Returns the tau lepton number.
37         * @return 0
38         */

39         public int tauLeptonQN() {return 0;}
40         /**
41         * Returns the antiparticle of this particle.
42         */

43         public QuantumParticle anti() {
44                 return new MuonNeutrino();
45         }
46         /**
47         * Returns true if qp is the antiparticle.
48         */

49         public boolean isAnti(QuantumParticle qp) {
50                 return (qp!=null) && (qp instanceof MuonNeutrino);
51         }
52         /**
53         * Returns a string representing this class.
54         */

55         public String JavaDoc toString() {
56                 return new String JavaDoc("Antimuon neutrino");
57         }
58         /**
59         * Emits a W-.
60         */

61         public AntiMuon emit(WMinus w) {
62                 AntiMuon e=new AntiMuon();
63                 e.momentum=momentum.subtract(w.momentum);
64                 return e;
65         }
66         /**
67         * Absorbs a W+.
68         */

69         public AntiMuon absorb(WPlus w) {
70                 AntiMuon e=new AntiMuon();
71                 e.momentum=momentum.add(w.momentum);
72                 return e;
73         }
74         /**
75         * Emits a Z0.
76         */

77         public AntiMuonNeutrino emit(ZZero z) {
78                 momentum=momentum.subtract(z.momentum);
79                 return this;
80         }
81         /**
82         * Absorbs a Z0.
83         */

84         public AntiMuonNeutrino absorb(ZZero z) {
85                 momentum=momentum.add(z.momentum);
86                 return this;
87         }
88 }
89
90
Popular Tags