示例#1
0
        public override bool Equals(object obj)
        {
            if (!(obj is Quark) || !base.Equals(obj))
            {
                return(false);
            }

            Quark p = obj as Quark;

            return((baryonNumber.Equals(p.baryonNumber) &&
                    color.Equals(p.color) &&
                    bottomness.Equals(p.bottomness) &&
                    topness.Equals(p.topness) &&
                    strangeness.Equals(p.strangeness) &&
                    charmness.Equals(p.charmness) &&
                    isospinZ.Equals(p.isospinZ) &&
                    hypercharge.Equals(p.hypercharge) &&
                    weakIsospin.Equals(p.weakIsospin) &&
                    weakHypercharge.Equals(p.weakHypercharge)
                    ) ? true : false);
        }
示例#2
0
 public Baryon(Quark q1, Quark q2, Quark q3) : base(q1, q2, q3)
 {
     this.antiParticle = new AntiBaryon(this);
 }
示例#3
0
 public Hyperon(Quark q1, Quark q2, StrangeQuark s)  : base(q1, q2, s)
 {
 }