/** * Add an Atom and makes it the C-terminus atom. * * @param atom The Atom that is the C-terminus * * @see #getCTerminus */ @Override public void addCTerminus(IAtom atom) { super.addAtom(atom); setCTerminus(atom); }
/** * Add an Atom and makes it the C-terminus atom. * * @param atom The Atom that is the C-terminus * * @see #getCTerminus */ @Override public void addCTerminus(IAtom atom) { super.addAtom(atom); setCTerminus(atom); }
/** * Clones this AminoAcid object. * * @return The cloned object */ @Override public IAminoAcid clone() throws CloneNotSupportedException { AminoAcid clone = (AminoAcid) super.clone(); // copying the new N-terminus and C-terminus pointers if (getNTerminus() != null) clone.setNTerminus(clone.getAtom(getAtomNumber(getNTerminus()))); if (getCTerminus() != null) clone.setCTerminus(clone.getAtom(getAtomNumber(getCTerminus()))); return clone; }
/** * Clones this AminoAcid object. * * @return The cloned object */ @Override public IAminoAcid clone() throws CloneNotSupportedException { AminoAcid clone = (AminoAcid) super.clone(); // copying the new N-terminus and C-terminus pointers if (getNTerminus() != null) clone.setNTerminus(clone.getAtom(getAtomNumber(getNTerminus()))); if (getCTerminus() != null) clone.setCTerminus(clone.getAtom(getAtomNumber(getCTerminus()))); return clone; }