public void SetDesignOperation(ResfileDesignOperation operation, int chainIndex, int aaIndex, IEnumerable <char> letters = null) { ResfileAaIdentifier aaIdentifier = new ResfileAaIdentifier(chainIndex, aaIndex); ResfileAaOperation aaOperation = new ResfileAaOperation(operation, letters); _operations[aaIdentifier] = aaOperation; }
public ResfileAaOperation(ResfileDesignOperation operation, IEnumerable <char> letters = null) { Operation = operation; if (letters != null) { Letters.Clear(); Letters.AddRange(letters); } }
public void SetDesignOperation(IEnumerable <IChain> chains, Selection selection, ResfileDesignOperation operation, IEnumerable <char> aas = null) { int chainIndex = 0; foreach (IChain chain in chains) { for (int aaIndex = 0; aaIndex < chain.Count; aaIndex++) { if (!selection.Aas.Contains(chain[aaIndex])) { continue; } SetDesignOperation(operation, chainIndex, aaIndex, aas); } chainIndex++; } }