hash.put(0, rgp.getGroup()==null?null:rgp.getGroup().hashCode()); hash.put(1, rgp.getFirstAttachmentPoint()==null?null:rgp.getFirstAttachmentPoint().hashCode()); hash.put(2, rgp.getSecondAttachmentPoint()==null?null:rgp.getSecondAttachmentPoint().hashCode()); rgrpHash.put(rgp.hashCode(),hash);
HashMap<Integer,IAtom> map = new HashMap<Integer,IAtom>(); map.put(1, rgrp.getFirstAttachmentPoint()); map.put(2, rgrp.getSecondAttachmentPoint()); redoRGroupApo.put(rgrp,map);
IAtom secondAttachmentPoint = rgroup.getSecondAttachmentPoint(); int apoCount = 0; if (firstAttachmentPoint != null) {
if(ac.contains(rgrp.getFirstAttachmentPoint())) labelApoAtoms(rgrp.getFirstAttachmentPoint(),diagram,APO1_LABEL,ac,jcpModel); if (ac.contains(rgrp.getSecondAttachmentPoint())) labelApoAtoms(rgrp.getSecondAttachmentPoint(),diagram,APO2_LABEL,ac,jcpModel); break apo;
subsAt = substitute.getFirstAttachmentPoint(); else subsAt = substitute.getSecondAttachmentPoint();
HashMap<Integer,IAtom> map = new HashMap<Integer,IAtom>(); map.put(1, rgrp.getFirstAttachmentPoint()); map.put(2, rgrp.getSecondAttachmentPoint()); existingRGroupApo.put(rgrp,map);
Assert.assertEquals(rGroups.get(0).getSecondAttachmentPoint(), null); Assert.assertEquals(rGroups.get(1).getFirstAttachmentPoint(), null); Assert.assertEquals(rGroups.get(1).getSecondAttachmentPoint(), null);
Assert.assertEquals(rGroups.get(2).getFirstAttachmentPoint().getSymbol(), "S"); Assert.assertNull(rGroups.get(0).getSecondAttachmentPoint()); Assert.assertNull(rGroups.get(1).getSecondAttachmentPoint()); Assert.assertNull(rGroups.get(2).getSecondAttachmentPoint());
Assert.assertEquals(rList.getRGroups().size(), 2); List<RGroup> rGroups = rList.getRGroups(); Assert.assertEquals(rGroups.get(0).getSecondAttachmentPoint().getSymbol(), "O"); Assert.assertEquals(rGroups.get(1).getSecondAttachmentPoint().getSymbol(), "O"); Assert.assertFalse(rList.isRestH()); Assert.assertEquals(rGroups.get(0).getSecondAttachmentPoint(), null);