public abstract class AbstractMopacShell extends CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
Modifier and Type | Field and Description |
---|---|
static String[] |
defaultparams |
protected boolean |
errorIfDisconnected |
protected String |
inFile |
protected int |
maxAllAtoms |
protected int |
maxHeavyAtoms |
static String |
MESSAGE_UNSUPPORTED_TYPE |
protected String |
mopac_commands |
protected boolean |
optimize |
protected String[] |
outFiles |
protected String[] |
table |
protected boolean |
useOriginalStructure |
enabled, executables, exitCode, inputFile, logger, os_FreeBSD, os_LINUX, os_LINUX64, os_MAC, os_WINDOWS, os_WINDOWS7, os_WINDOWSVISTA, outputFile, prefix, runAsync, workFolder
Constructor and Description |
---|
AbstractMopacShell() |
Modifier and Type | Method and Description |
---|---|
protected org.openscience.cdk.interfaces.IAtomContainer |
applyEvenIfDisconnected(org.openscience.cdk.interfaces.IAtomContainer atomcontainer) |
protected abstract org.openscience.cdk.interfaces.IAtomContainer |
generate3DStructure(org.openscience.cdk.interfaces.IAtomContainer mol) |
int |
getMaxAllAtoms() |
int |
getMaxHeavyAtoms() |
String |
getMopac_commands() |
protected String |
getOutFile(int i,
String os) |
protected String |
getPath(File file) |
protected void |
initialize() |
boolean |
isErrorIfDisconnected() |
boolean |
isOptimize() |
boolean |
isUseOriginalStructure() |
protected org.openscience.cdk.interfaces.IAtomContainer |
parseOutput(String mopac_path,
org.openscience.cdk.interfaces.IAtomContainer mol)
Does nothing, override with smth meaningfull
|
protected List<String> |
prepareInput(String path,
org.openscience.cdk.interfaces.IAtomContainer mol)
Returns empty string, override with smth meaningfull
|
org.openscience.cdk.interfaces.IAtomContainer |
process(org.openscience.cdk.interfaces.IAtomContainer target) |
org.openscience.cdk.interfaces.IAtomContainer |
runShell(org.openscience.cdk.interfaces.IAtomContainer mol) |
void |
setErrorIfDisconnected(boolean errorIfDisconnected) |
void |
setMaxAllAtoms(int maxAllAtoms) |
void |
setMaxHeavyAtoms(int maxHeavyAtoms) |
void |
setMopac_commands(String mopac_commands) |
void |
setOptimize(boolean optimize) |
void |
setUseOriginalStructure(boolean useOriginalStructure) |
String |
toString() |
protected org.openscience.cdk.interfaces.IAtomContainer |
transform_input(org.openscience.cdk.interfaces.IAtomContainer mol)
This is not thread safe!
|
protected org.openscience.cdk.interfaces.IAtomContainer |
transform(org.openscience.cdk.interfaces.IAtomContainer mol) |
addExecutable, addExecutable, addExecutableFreeBSD, addExecutableLinux, addExecutableLinux64, addExecutableMac, addExecutableWin, close, exitCodeOK, getExecutable, getExecutable, getExitCode, getHomeDir, getHomeFromConfig, getID, getInputFile, getMsgemptymolecule, getOutputFile, getWorkFolder, isEnabled, open, parseOutput, processStdOut, runShell, setEnabled, setExitCode, setInputFile, setOutputFile, setWorkFolder, transform
protected int maxHeavyAtoms
protected int maxAllAtoms
public static String[] defaultparams
protected String mopac_commands
protected boolean useOriginalStructure
protected boolean optimize
protected String inFile
protected String[] outFiles
protected boolean errorIfDisconnected
public static String MESSAGE_UNSUPPORTED_TYPE
protected String[] table
public AbstractMopacShell() throws ShellException
ShellException
public boolean isUseOriginalStructure()
public void setUseOriginalStructure(boolean useOriginalStructure)
public boolean isOptimize()
public void setOptimize(boolean optimize)
public String getMopac_commands()
public void setMopac_commands(String mopac_commands)
public int getMaxHeavyAtoms()
public void setMaxHeavyAtoms(int maxHeavyAtoms)
public int getMaxAllAtoms()
public void setMaxAllAtoms(int maxAllAtoms)
public boolean isErrorIfDisconnected()
public void setErrorIfDisconnected(boolean errorIfDisconnected)
protected void initialize() throws ShellException
initialize
in class CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
ShellException
protected abstract org.openscience.cdk.interfaces.IAtomContainer generate3DStructure(org.openscience.cdk.interfaces.IAtomContainer mol) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
protected org.openscience.cdk.interfaces.IAtomContainer transform_input(org.openscience.cdk.interfaces.IAtomContainer mol) throws net.idea.modbcum.i.exceptions.AmbitException
transform_input
in class CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
net.idea.modbcum.i.exceptions.AmbitException
protected String getPath(File file)
getPath
in class CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
protected List<String> prepareInput(String path, org.openscience.cdk.interfaces.IAtomContainer mol) throws ShellException
CommandShell
prepareInput
in class CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
ShellException
protected org.openscience.cdk.interfaces.IAtomContainer parseOutput(String mopac_path, org.openscience.cdk.interfaces.IAtomContainer mol) throws ShellException
CommandShell
parseOutput
in class CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
ShellException
protected org.openscience.cdk.interfaces.IAtomContainer transform(org.openscience.cdk.interfaces.IAtomContainer mol)
transform
in class CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
public org.openscience.cdk.interfaces.IAtomContainer runShell(org.openscience.cdk.interfaces.IAtomContainer mol) throws ShellException
runShell
in class CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
ShellException
protected org.openscience.cdk.interfaces.IAtomContainer applyEvenIfDisconnected(org.openscience.cdk.interfaces.IAtomContainer atomcontainer) throws ShellException
ShellException
public org.openscience.cdk.interfaces.IAtomContainer process(org.openscience.cdk.interfaces.IAtomContainer target) throws net.idea.modbcum.i.exceptions.AmbitException
process
in interface net.idea.modbcum.i.processors.IProcessor<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
process
in class CommandShell<org.openscience.cdk.interfaces.IAtomContainer,org.openscience.cdk.interfaces.IAtomContainer>
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.