All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmolecules.chem.conf.gen.TorsionSetWithEliminationRuleStrain Maven / Gradle / Ivy

There is a newer version: 2024.11.2
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy