public final static MonomerNotationUnit produceMonomerNotationUnitWithOtherID ( MonomerNotation monomerNotation , String newID ) throws NotationException { MonomerNotationUnit result = new MonomerNotationUnit ( newID , monomerNotation . getType ( ) ) ; if ( monomerNotation . isAnnotationTrue ( ) ) { result . setAnnotation ( monomerNotation . getAnnotation ( ) ) ; } result . setCount ( monomerNotation . getCount ( ) ) ; return result ; }
method to replace the MonomerNotationUnit having the MonomerID with the new MonomerID