package beast.core;

@Description("Entry point for running an Beast task, for instance an MCMC or other probabilistic " +
		"analysis, a simulation, etc.")
public abstract class Runnable extends Plugin {
    public void run() throws Exception {};
    
    /** Set up information related to the file for (re)storing the State.
     *  The Runnable implementation is responsible for making its
     *  State synchronising with the file **/
    public void setStateFile(String sFileName, boolean bRestoreFromFile) {
    	m_sStateFile = sFileName;
    	m_bRestoreFromFile = bRestoreFromFile;
    }
    
    /** flag to indicate that the State should be restored from File at the start of the analysis **/
    protected boolean m_bRestoreFromFile = false;

    /** name of the file store the state in **/
    protected String m_sStateFile;
}

@@ -826,12 +826,33 @@
 tateFile
+ = %22state.backup.xml%22
 ;%0A%7D%0A

set default state file to pass integration test