jmri.implementation
Class QuietShutDownTask

java.lang.Object
  extended by jmri.implementation.AbstractShutDownTask
      extended by jmri.implementation.QuietShutDownTask
All Implemented Interfaces:
ShutDownTask

public class QuietShutDownTask
extends AbstractShutDownTask

Provides a base to perform a shutdown task without user-intervention.

Author:
Matthew Harris Copyright (c) 2008

Constructor Summary
QuietShutDownTask(String name)
          Constructor specifies the shutdown task name
 
Method Summary
protected  boolean doAction()
          Provide a subclass-specific method to handle the request to fix the problem.
 boolean execute()
          Take the necessary action.
 
Methods inherited from class jmri.implementation.AbstractShutDownTask
name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuietShutDownTask

public QuietShutDownTask(String name)
Constructor specifies the shutdown task name

Method Detail

execute

public boolean execute()
Take the necessary action.

Returns:
true if the shutdown should continue, false to abort.

doAction

protected boolean doAction()
Provide a subclass-specific method to handle the request to fix the problem. This is a dummy implementation, intended to be overloaded.

Returns:
true if ready to shutdown, false to end shutdown


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads