コード例 #1
0
ファイル: Torso.cs プロジェクト: erdembey/ooRuleML
        public Torso(Torso another)
        {
            Atom refAtom = null;

            try
            {
                if (another.Atom != null)
                {
                    refAtom = (Atom)another.Atom.Clone();
                }
            }
            catch (Exception e)
            {
                e.ToString();
            }

            atom = refAtom;
        }
コード例 #2
0
ファイル: Equivalent.cs プロジェクト: erdembey/ooRuleML
 public int AddTorso(Torso item)
 {
     return torso.Add(item);
 }
コード例 #3
0
ファイル: Torso.cs プロジェクト: erdembey/ooRuleML
        public override bool Equals(object o)
        {
            if (o == null || GetType() != o.GetType())
            {
                return false;
            }

            Torso other = new Torso((Torso)o);

            if (this.Atom != null)
            {
                if (!this.Atom.Equals(other.Atom))
                {
                    return false;
                }
            }

            return true;
        }