示例#1
0
 private void startGroup(Chain chain, string group3, int groupSequenceNumber,
                         char groupInsertionCode, int firstAtomIndex)
 {
     if (groupCount == group3s.Length)
     {
         chains           = (Chain[])Util.doubleLength(chains);
         group3s          = Util.doubleLength(group3s);
         seqcodes         = Util.doubleLength(seqcodes);
         firstAtomIndexes = Util.doubleLength(firstAtomIndexes);
     }
     firstAtomIndexes[groupCount] = firstAtomIndex;
     chains[groupCount]           = chain;
     group3s[groupCount]          = group3;
     seqcodes[groupCount]         = Group.getSeqcode(groupSequenceNumber, groupInsertionCode);
     ++groupCount;
 }
示例#2
0
 public void defineStructure(string structureType, char startChainID, int startSequenceNumber, char startInsertionCode, char endChainID, int endSequenceNumber, char endInsertionCode)
 {
     /*
      * System.out.println("Mmset.defineStructure(" + structureType + "," +
      * chainID + "," +
      * startSequenceNumber + "," + startInsertionCode + "," +
      * endSequenceNumber + "," + endInsertionCode + ")" );
      */
     if (structureCount == structures.Length)
     {
         structures = (Structure[])Util.setLength(structures, structureCount + 10);
     }
     structures[structureCount++] = new Structure(structureType, startChainID, Group.getSeqcode(startSequenceNumber, startInsertionCode), endChainID, Group.getSeqcode(endSequenceNumber, endInsertionCode));
 }