UNPKG

biojs-vis-pdbviewer

Version:

A BioJS 2.0 component to view protein structures

27 lines (26 loc) 725 B
Clazz.declarePackage ("JM"); c$ = Clazz.decorateAsClass (function () { this.info = null; this.g1 = null; this.g2 = null; Clazz.instantialize (this, arguments); }, JM, "BasePair"); Clazz.makeConstructor (c$, function () { }); c$.add = Clazz.defineMethod (c$, "add", function (info, g1, g2) { var bp = new JM.BasePair (); bp.info = info; (bp.g1 = g1).addBasePair (bp); (bp.g2 = g2).addBasePair (bp); return bp; }, "java.util.Map,JM.NucleicMonomer,JM.NucleicMonomer"); Clazz.defineMethod (c$, "getPartnerAtom", function (g) { return (g === this.g1 ? this.g2 : this.g1).getLeadAtom ().i; }, "JM.NucleicMonomer"); Clazz.defineMethod (c$, "toString", function () { return this.info.toString (); });