]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/tasks/idle/class_IdleLoopTask.php
Typo fixed + more lines with line numbers
[hub.git] / application / hub / main / tasks / idle / class_IdleLoopTask.php
index f8299a6c0bb3065ea3bcf1e471db529f2b26ac34..c65582647f15c4f0576ab7c8f59168b7b89b2f1d 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @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
  *
@@ -21,7 +21,7 @@
  * 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
         *
@@ -35,9 +35,9 @@ class IdleLoopTask extends BaseTask implements Visitable, Taskable {
        /**
         * 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();
 
@@ -46,7 +46,7 @@ class IdleLoopTask extends BaseTask implements Visitable, Taskable {
        }
 
        /**
-        * 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
@@ -61,10 +61,20 @@ class IdleLoopTask extends BaseTask implements Visitable, Taskable {
         *
         * @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]