chemaxon.marvin.util
Class MolFragLoader.RgroupAttachmentCountFilter

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

public static class MolFragLoader.RgroupAttachmentCountFilter
extends java.lang.Object
implements MolFilter

Molecule filter which accepts molecules with a specified number of R-group attachments.

Since:
Marvin 5.4
See Also:
MolFragLoader.setFilter(chemaxon.util.MolFilter)

Constructor Summary
MolFragLoader.RgroupAttachmentCountFilter(int attachmentCount)
          Contructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MolFragLoader.RgroupAttachmentCountFilter

public MolFragLoader.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