Class MolFragLoader.RgroupAttachmentCountFilter

    • Constructor Detail

      • RgroupAttachmentCountFilter

        public RgroupAttachmentCountFilter​(int attachmentCount)
        Contructor. Sets the number of attachments to be accepted by this filter.
        attachmentCount - the number of attachments to be accepted
    • Method Detail

      • accept

        public boolean accept​(Molecule mol)
        Accepts molecule if the number of R-group attachments in the molecule is exactly the attachment count specified in the constructor of this filter.
        Specified by:
        accept in interface MolFilter
        mol - is the molecule
        true if molecule is accepted