/** {@inheritDoc} */ @Override public EntityInfo getEntityById(int entityId) { for (EntityInfo mol : this.entityInfos){ if (mol.getMolId()==entityId){ return mol; } } return null; }
chains.add(chainID); compoundMolIds2chainIds.put(current_compound.getMolId(),chains);
return new Integer(o1.getMolId()).compareTo(o2.getMolId()); }).getMolId();
if (newChain==null) { logger.warn("Could not find chain asymId "+asymId+" of model "+modelNr+" while cloning entityInfo "+entityInfo.getMolId()+". Something is wrong!"); continue;
String labelSeqId = Integer.toString(g.getResidueNumber().getSeqNum()); if (g.getChain()!=null && g.getChain().getEntityInfo()!=null) { entityId = Integer.toString(g.getChain().getEntityInfo().getMolId()); labelSeqId = Integer.toString(g.getChain().getEntityInfo().getAlignedResIndex(g, g.getChain()));
s.addEntityInfo(newEntityInfo); } else { newEntityInfo = s.getEntityById(oldEntityInfo.getMolId()); if( newEntityInfo == null ) { newEntityInfo = new EntityInfo(oldEntityInfo);