X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Ftasks%2Fnode%2Fself_connect%2Fclass_NodeSelfConnectTask.php;h=8a7d99fb1a66ba5dba28b3436bd1de6a517a2370;hb=280fca59f8ed35ddde36a794c7a9f4991911e46a;hp=2b7a32976c6a5ae4192f6b08d65468b2b855970b;hpb=af974961ece00b79f1782cdf98bcb3470ff32c77;p=hub.git diff --git a/application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php b/application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php index 2b7a32976..8a7d99fb1 100644 --- a/application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php +++ b/application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php @@ -2,11 +2,11 @@ /** * A SelfConnect node-task * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,7 +46,7 @@ class NodeSelfConnectTask extends BaseTask implements Taskable, Visitable { } /** - * Accepts the visitor to process the visit "request" + * Accepts the visitor to process the visitor * * @param $visitorInstance An instance of a Visitor class * @return void @@ -63,7 +63,17 @@ class NodeSelfConnectTask extends BaseTask implements Taskable, Visitable { */ public function executeTask () { // Get the node instance and try it - Registry::getRegistry()->getInstance('node')->doSelfConnection($this); + NodeObjectFactory::createNodeInstance()->doSelfConnection($this); + } + + /** + * Shuts down the task + * + * @return void + * @todo 0% done + */ + public function doShutdown () { + self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...'); } }