Package ffx.ui
Class FFXExec
java.lang.Object
ffx.ui.FFXExec
- All Implemented Interfaces:
Runnable
FFXExec encapsulates a native replacement for the JDK System.exec() method. TINKER programs are
executed in their own thread through a call to a Native method called "FFXExec" which in turn
calls the function "system()". The reason we are not using the System.exec() methods is that some
TINKER routines execute indefinitely. Users may want to exit Force Field X and shut down the JVM
after launching a dynamics run, for example. In this case the thread should not be dependent on a
JVM instance.
- Author:
- Michael J. Schnieders
-
Constructor Details
-
FFXExec
Constructor- Parameters:
s
- FFXSystem the Native command will execute onn
- Name of the log filea
- Command to executed
- Directory to launch the command inm
- MainPanelfile
- File to openo
- Load the resulting version file onto the passed FFXSystem
-
-
Method Details
-
getReturnValue
public int getReturnValue()Getter for the fieldreturnValue
.- Returns:
- a int.
-
isAlive
public boolean isAlive()isAlive- Returns:
- a boolean.
-
run
public void run()Executes the native call to "System()" and notifies the ResultPanel upon completion. This should only be called indirectly by Thread.Start() -
toString
Commons.Lang Style toString.
-