Sha256: 205087706ebc895cbf003f57ddcbf63cd164d80fa9edef4dd6d28b17148aa3d7
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
package toxTree.tree.rules; import org.openscience.cdk.interfaces.IAtomContainer; import toxTree.exceptions.DecisionMethodException; import toxTree.tree.rules.smarts.RuleSMARTSubstructureCDK; public class StructureAlertCDK extends RuleSMARTSubstructureCDK implements IAlertCounter { /** * */ private static final long serialVersionUID = -5283264004521118487L; IAlertCounter alertsCounter; public StructureAlertCDK() { super(); alertsCounter = new DefaultAlertCounter(); } public void incrementCounter(IAtomContainer mol) { alertsCounter.incrementCounter(mol); } @Override public boolean verifyRule(IAtomContainer mol) throws DecisionMethodException { if (super.verifyRule(mol)) { incrementCounter(mol); return true; } else return false; } @Override public String getImplementationDetails() { StringBuffer b = new StringBuffer(); b.append(alertsCounter.getImplementationDetails()); b.append("Uses CDK SMARTS<br>"); b.append(super.getImplementationDetails()); return b.toString(); } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toxtree-0.0.1 | Toxtree-v2.6.13/src/toxTree/tree/rules/StructureAlertCDK.java |