Class MolFragLoader.RgroupAttachmentCountFilter

java.lang.Object
chemaxon.marvin.util.MolFragLoader.RgroupAttachmentCountFilter
All Implemented Interfaces:
MolFilter
Enclosing class:
MolFragLoader

public static class MolFragLoader.RgroupAttachmentCountFilter extends Object implements MolFilter
Molecule filter which accepts molecules with a specified number of R-group attachments.
Since:
Marvin 5.4
See Also:
  • Constructor Details

    • 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 Details

    • 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