Package jmri.util.startup
Class PerformScriptModel
- java.lang.Object
-
- jmri.util.startup.AbstractStartupModel
-
- jmri.util.startup.PerformScriptModel
-
- All Implemented Interfaces:
StartupModel
public class PerformScriptModel extends AbstractStartupModel
A PerformScriptModel object runs a script when the program is started.- See Also:
PerformScriptModelFactory
-
-
Constructor Summary
Constructors Constructor Description PerformScriptModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileName()voidperformAction()Perform the startup action.voidsetFileName(java.lang.String n)-
Methods inherited from class jmri.util.startup.AbstractStartupModel
addException, getExceptions, getName, isEnabled, isValid, setEnabled, setName, toString
-
-
-
-
Constructor Detail
-
PerformScriptModel
public PerformScriptModel()
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
-
setFileName
public void setFileName(java.lang.String n)
-
performAction
public void performAction() throws JmriException
Description copied from interface:StartupModelPerform the startup action. The caller is responsible to ensure that this startup model is enabled before calling this method.- Throws:
JmriException- if there is an exception thrown initializing the startup item; the original exception should be available asThrowable.getCause()
-
-