public Implies(Implies another) { Oid refOid = null; Head refHead = null; Body refBody = null; try { if (another.Oid != null) { refOid = (Oid)another.Oid.Clone(); } if (another.Body != null) { refBody = (Body)another.Body.Clone(); } if (another.Head != null) { refHead = (Head)another.Head.Clone(); } } catch (Exception e) { e.ToString(); } oid = refOid; body = refBody; head = refHead; }
public Head(Head another) { Atom refAtom = null; try { if (another.Atom != null) { refAtom = (Atom)another.Atom.Clone(); } } catch (Exception e) { e.ToString(); } atom = refAtom; atom.initialIndividuals(); }
public override bool Equals(object o) { if (o == null || GetType() != o.GetType()) { return false; } Head other = new Head((Head)o); if (this.Atom != null) { if (!this.Atom.Equals(other.Atom)) { return false; } } return true; }