*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class IdleLoopTask extends BaseTask implements Visitable, Taskable {
+class IdleLoopTask extends BaseTask implements Taskable, Visitable {
/**
* Protected constructor
*
/**
* Creates an instance of this class
*
- * @return $taskInstance An instance of a Visitable class
+ * @return $taskInstance An instance of a Taskable/Visitable class
*/
- public final static function createIdleLoopTask () {
+ public static final function createIdleLoopTask () {
// Get new instance
$taskInstance = new IdleLoopTask();
}
/**
- * Accepts the visitor to rpocess the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
*
* @return void
*/
- public function execute () {
+ public function executeTask () {
// Idle here a little (2 milliseconds)
$this->idle(2);
}
+
+ /**
+ * Shutdown this task, this does nothing here, just supply the method.
+ *
+ * @return void
+ */
+ public function doShutdown () {
+ // Debug message
+ self::createDebugInstance(__CLASS__)->debugOutput('IDLE-TASK[' . __LINE__ . ']: Shutting down...');
+ }
}
// [EOF]