Package apps.startup

Class StartupPauseModel

    • Method Detail

      • isValid

        public boolean isValid()
        Test is model is a valid model. Invalid models will not be shown or saved by the Startup Actions Preferences panel. The default behavior is to return true if AbstractStartupModel.getName() returns a non-null, non-empty String.
        Specified by:
        isValid in interface StartupModel
        Overrides:
        isValid in class AbstractStartupModel
        Returns:
        true if duration greater than or equal to 0; false otherwise
      • getDelay

        public int getDelay()
        Get the delay this action will pause the startup action processing.
        Returns:
        seconds delay
      • setDelay

        public void setDelay​(int delay)
        Set the delay this action will pause the startup action processing.
        Parameters:
        delay - delay in seconds
      • performAction

        public void performAction()
                           throws JmriException
        Description copied from interface: StartupModel
        Perform 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 as Throwable.getCause()