01: package JSci.physics.particles;
02:
03: import JSci.physics.quantum.QuantumParticle;
04:
05: /**
06: * A class representing ups.
07: * @version 1.5
08: * @author Mark Hale
09: */
10: public final class Up extends Quark {
11: /**
12: * Constructs an up.
13: */
14: public Up() {
15: }
16:
17: /**
18: * Returns the rest mass (MeV).
19: * @return 5.0
20: */
21: public double restMass() {
22: return 5.0;
23: }
24:
25: /**
26: * Returns the number of 1/3 units of electric charge.
27: * @return 2
28: */
29: public int charge() {
30: return 2;
31: }
32:
33: /**
34: * Returns the strangeness number.
35: * @return 0
36: */
37: public int strangeQN() {
38: return 0;
39: }
40:
41: /**
42: * Returns the antiparticle of this particle.
43: */
44: public QuantumParticle anti() {
45: return new AntiUp();
46: }
47:
48: /**
49: * Returns true if qp is the antiparticle.
50: */
51: public boolean isAnti(QuantumParticle qp) {
52: return (qp != null) && (qp instanceof AntiUp);
53: }
54:
55: /**
56: * Returns a string representing this class.
57: */
58: public String toString() {
59: return new String("Up");
60: }
61: }
|