Class MolFragLoader.RgroupAttachmentCountFilter

    • Constructor Detail

      • RgroupAttachmentCountFilter

        public RgroupAttachmentCountFilter​(int attachmentCount)
        Contructor. Sets the number of attachments to be accepted by this filter.
        Parameters:
        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
        Parameters:
        mol - is the molecule
        Returns:
        true if molecule is accepted