/// <summary> Removes a particular strand, specified by its name. /// /// </summary> /// <param name="name">name of the strand to remove /// </param> public virtual void removeStrand(System.String name) { if (strands.ContainsKey(name)) { Strand strand = (Strand)strands[name]; this.remove(strand); strands.Remove(name); } }
/// <summary> Retrieve a Monomer object by specifying its name. [You have to specify the strand to enable /// monomers with the same name in different strands. There is at least one such case: every /// strand contains a monomer called "".] /// /// </summary> /// <param name="monName"> The name of the monomer to look for /// </param> /// <returns> The Monomer object which was asked for /// /// </returns> public virtual IMonomer getMonomer(System.String monName, System.String strandName) { Strand strand = (Strand)strands[strandName]; if (strand != null) { return((Monomer)strand.getMonomer(monName)); } else { return(null); } }