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

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

There is a newer version: 2024.11.2
Show newest version
package org.openmolecules.chem.conf.gen;

import com.actelion.research.chem.Canonizer;
import com.actelion.research.chem.conf.Conformer;

import java.util.ArrayList;

public class ConformerDiagnostics {
	private String mIDCode,mCoords,mName;
	private BaseConformer mBaseConformer;
	private double mCollisionIntensity,mLikelihood;
	private int[] mTorsionIndex,mConformerIndex,mCollisionAtoms,mFixedTorsion;
	private ArrayList mEliminationRules;
	private StringBuilder mCollisionLog;
	private boolean mSuccess;

	protected ConformerDiagnostics(TorsionSet ts) {
		mTorsionIndex = ts.getTorsionIndexes();
		mConformerIndex = ts.getConformerIndexes();
		mCollisionLog = new StringBuilder();
		mEliminationRules = new ArrayList<>();
	}

	protected void setConformer(BaseConformer bc, Conformer c) {
		Canonizer can = new Canonizer(c.toMolecule(null));
		mIDCode = can.getIDCode();
		mCoords = can.getEncodedCoordinates();
		mBaseConformer = bc;
		mName = c.getName();
		mFixedTorsion = new int[bc.getRotatableBonds().length];
		mLikelihood = c.getLikelihood();
		for (int i=0; i");
		mCollisionLog.append(log);
	}

	public String getIDCode() {
		return mIDCode;
	}

	public String getCoords() {
		return mCoords;
	}

	public String getName() {
		return mName;
	}

	public boolean isSuccess() {
		return mSuccess;
	}

	public double getCollisionIntensity() {
		return mCollisionIntensity;
	}

	public double getLikelihood() {
		return mLikelihood;
	}

	public int[] getCollisionAtoms() {
		return mCollisionAtoms;
	}

	public int[] getRigidFragmentIndexes() {
		return mConformerIndex;
	}

	public int[] getTorsionIndexes() {
		return mTorsionIndex;
	}

	public int[] getFixedTorsions() {
		return mFixedTorsion;
	}

	public String getCollisionLog() {
		return mCollisionLog.toString();
	}

	public ArrayList getEliminationRules() {
		return mEliminationRules;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy