*
* @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 - 2011 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 HubPingTask extends BaseTask implements Visitable, Taskable {
+class HubPingTask extends BaseTask implements Taskable, Visitable {
/**
* Protected constructor
*
* Creates an instance of this class
*
* @param $listInstance A Listable instance
- * @return $taskInstance An instance of a Visitable class
+ * @return $taskInstance An instance of a Taskable/Visitable class
*/
- public final static function createHubPingTask (Listable $listInstance) {
+ public static final function createHubPingTask (Listable $listInstance) {
// Get new instance
$taskInstance = new HubPingTask();
$taskInstance->setListInstance($listInstance);
// Init ping iterator instance
- $iteratorInstance = ObjectFactory::createObjectByConfiguredName('hub_ping_iterator_class', array($listInstance));
+ $iteratorInstance = $listInstance->getListIterator();
// Set it as well
$taskInstance->setIteratorInstance($iteratorInstance);
}
/**
- * Accepts the visitor to rpocess the visit "request"
+ * Accepts the visitor to process the visit "request"
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo 0%
+ * @todo Also visit some sub-objects?
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
* Executes the task
*
* @return void
+ * @todo 0% done
*/
- public function execute () {
+ public function executeTask () {
$this->partialStub('Unimplemented task.');
}
}