org.openmolecules.chem.conf.gen.TorsionSetWithEliminationRuleStrain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openchemlib Show documentation
Show all versions of openchemlib Show documentation
Open Source Chemistry Library
package org.openmolecules.chem.conf.gen;
public class TorsionSetWithEliminationRuleStrain implements Comparable {
private TorsionSet mTorsionSet;
private double mRuleStrain;
public TorsionSetWithEliminationRuleStrain(TorsionSet torsionSet, double ruleStrain) {
mTorsionSet = torsionSet;
mRuleStrain = ruleStrain;
}
public TorsionSet getTorsionSet() {
return mTorsionSet;
}
public double getRuleStrain() {
return mRuleStrain;
}
@Override
public int compareTo(TorsionSetWithEliminationRuleStrain ts) {
return mRuleStrain < ts.mRuleStrain ? -1 : mRuleStrain > ts.mRuleStrain ? 1 : 0;
}
public boolean equals(TorsionSetWithEliminationRuleStrain ts) {
return mRuleStrain == ts.mRuleStrain;
}
}