// Import hub-specific stuff
use Hub\Generic\BaseHubSystem;
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A general communicator class
*
// Import framework stuff
use CoreFramework\Registry\Registry;
+use CoreFramework\State\Stateable;
/**
* A general NodeCrawler class
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
+use CoreFramework\State\Stateable;
/**
* A CruncherKey producer class
use CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
+use CoreFramework\State\Stateable;
/**
* A CruncherTestUnit producer class
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
+use CoreFramework\State\Stateable;
/**
* A MinerRealGenesisBlock producer class
<?php
+// Own namespace
+namespace Hub\State\Communicator;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A active communicator state class
*
+++ /dev/null
-<?php
-/**
- * A ??? communicator state class
- *
- * @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.0.0
- * @copyright Copyright (c) 2014, 2015 Hub Developer Team
- * @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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 Communicator???State extends BaseCommunicatorState implements Stateable {
- /**
- * Protected constructor
- *
- * @return void
- */
- protected function __construct () {
- // Call parent constructor
- parent::__construct(__CLASS__);
-
- // Set state name
- $this->setStateName('!!!');
- }
-
- /**
- * Creates an instance of this class
- *
- * @param $communicatorInstance An instance of a Communicator class
- * @return $stateInstance An instance of a Stateable class
- */
- public final static function createCommunicator???State (Communicator $communicatorInstance) {
- // Get new instance
- $stateInstance = new Communicator???State();
-
- // Debug message
- //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('COMMUNICATOR-STATE: Has changed from ' . $communicatorInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
-
- // Set the communicator instance
- $stateInstance->setCommunicatorInstance($communicatorInstance);
-
- // Return the prepared instance
- return $stateInstance;
- }
-}
-
-// [EOF]
-?>
--- /dev/null
+<?php
+// Own namespace
+namespace Hub\State\Communicator\;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
+/**
+ * A ??? communicator state class
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @copyright Copyright (c) 2014, 2015 Hub Developer Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.ship-simu.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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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 Communicator???State extends BaseCommunicatorState implements Stateable {
+ /**
+ * Protected constructor
+ *
+ * @return void
+ */
+ protected function __construct () {
+ // Call parent constructor
+ parent::__construct(__CLASS__);
+
+ // Set state name
+ $this->setStateName('!!!');
+ }
+
+ /**
+ * Creates an instance of this class
+ *
+ * @param $communicatorInstance An instance of a Communicator class
+ * @return $stateInstance An instance of a Stateable class
+ */
+ public final static function createCommunicator???State (Communicator $communicatorInstance) {
+ // Get new instance
+ $stateInstance = new Communicator???State();
+
+ // Debug message
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('COMMUNICATOR-STATE: Has changed from ' . $communicatorInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
+
+ // Set the communicator instance
+ $stateInstance->setCommunicatorInstance($communicatorInstance);
+
+ // Return the prepared instance
+ return $stateInstance;
+ }
+}
+
+// [EOF]
+?>
<?php
+// Own namespace
+namespace Hub\State\Communicator;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A init communicator state class
*
<?php
+// Own namespace
+namespace Hub\State\Crawler;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A active crawler state class
*
<?php
+// Own namespace
+namespace Hub\State\Crawler;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A booting crawler state class
*
+++ /dev/null
-<?php
-/**
- * A ??? crawler state class
- *
- * @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.0.0
- * @copyright Copyright (c) 2014 Crawler Developer Team
- * @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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 Crawler???State extends BaseCrawlerState implements Stateable {
- /**
- * Protected constructor
- *
- * @return void
- */
- protected function __construct () {
- // Call parent constructor
- parent::__construct(__CLASS__);
-
- // Set state name
- $this->setStateName('!!!');
- }
-
- /**
- * Creates an instance of this class
- *
- * @param $crawlerInstance An instance of a Crawler class
- * @return $stateInstance An instance of a Stateable class
- */
- public final static function createCrawler???State (Crawler $crawlerInstance) {
- // Get new instance
- $stateInstance = new Crawler???State();
-
- // Debug message
- //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('COMMUNICATOR-STATE: Has changed from ' . $crawlerInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
-
- // Set the crawler instance
- $stateInstance->setCrawlerInstance($crawlerInstance);
-
- // Return the prepared instance
- return $stateInstance;
- }
-}
-
-// [EOF]
-?>
--- /dev/null
+<?php
+// Own namespace
+namespace Hub\State\Crawler\;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
+/**
+ * A ??? crawler state class
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @copyright Copyright (c) 2014 Crawler Developer Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.ship-simu.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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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 Crawler???State extends BaseCrawlerState implements Stateable {
+ /**
+ * Protected constructor
+ *
+ * @return void
+ */
+ protected function __construct () {
+ // Call parent constructor
+ parent::__construct(__CLASS__);
+
+ // Set state name
+ $this->setStateName('!!!');
+ }
+
+ /**
+ * Creates an instance of this class
+ *
+ * @param $crawlerInstance An instance of a Crawler class
+ * @return $stateInstance An instance of a Stateable class
+ */
+ public final static function createCrawler???State (Crawler $crawlerInstance) {
+ // Get new instance
+ $stateInstance = new Crawler???State();
+
+ // Debug message
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('COMMUNICATOR-STATE: Has changed from ' . $crawlerInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
+
+ // Set the crawler instance
+ $stateInstance->setCrawlerInstance($crawlerInstance);
+
+ // Return the prepared instance
+ return $stateInstance;
+ }
+}
+
+// [EOF]
+?>
<?php
+// Own namespace
+namespace Hub\State\Crawler;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A init crawler state class
*
+++ /dev/null
-<?php
-/**
- * A ??? cruncher state class
- *
- * @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.0.0
- * @copyright Copyright (c) 2011 - 2012 Cruncher Developer Team
- * @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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 Cruncher???State extends BaseCruncherState implements Stateable {
- /**
- * Protected constructor
- *
- * @return void
- */
- protected function __construct () {
- // Call parent constructor
- parent::__construct(__CLASS__);
-
- // Set state name
- $this->setStateName('!!!');
- }
-
- /**
- * Creates an instance of this class
- *
- * @param $cruncherInstance An instance of a CruncherHelper class
- * @return $stateInstance An instance of a Stateable class
- */
- public final static function createCruncher???State (CruncherHelper $cruncherInstance) {
- // Get new instance
- $stateInstance = new Cruncher???State();
-
- // Debug message
- //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRUNCHER-STATE: Has changed from ' . $cruncherInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
-
- // Set the cruncher instance
- $stateInstance->setCruncherInstance($cruncherInstance);
-
- // Return the prepared instance
- return $stateInstance;
- }
-
- /**
- * Executes the state with given Executor instance
- *
- * @param $executorInstance An instance of a Executor class
- * @return void
- */
- public function executeState (Executor $executorInstance) {
- $this->partialStub('This state needs implementation. executorInstance=' . $executorInstance->__toString());
- }
-}
-
-// [EOF]
-?>
--- /dev/null
+<?php
+// Own namespace
+namespace Hub\State\Cruncher\;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
+/**
+ * A ??? cruncher state class
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @copyright Copyright (c) 2011 - 2012 Cruncher Developer Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.ship-simu.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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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 Cruncher???State extends BaseCruncherState implements Stateable {
+ /**
+ * Protected constructor
+ *
+ * @return void
+ */
+ protected function __construct () {
+ // Call parent constructor
+ parent::__construct(__CLASS__);
+
+ // Set state name
+ $this->setStateName('!!!');
+ }
+
+ /**
+ * Creates an instance of this class
+ *
+ * @param $cruncherInstance An instance of a CruncherHelper class
+ * @return $stateInstance An instance of a Stateable class
+ */
+ public final static function createCruncher???State (CruncherHelper $cruncherInstance) {
+ // Get new instance
+ $stateInstance = new Cruncher???State();
+
+ // Debug message
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRUNCHER-STATE: Has changed from ' . $cruncherInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
+
+ // Set the cruncher instance
+ $stateInstance->setCruncherInstance($cruncherInstance);
+
+ // Return the prepared instance
+ return $stateInstance;
+ }
+
+ /**
+ * Executes the state with given Executor instance
+ *
+ * @param $executorInstance An instance of a Executor class
+ * @return void
+ */
+ public function executeState (Executor $executorInstance) {
+ $this->partialStub('This state needs implementation. executorInstance=' . $executorInstance->__toString());
+ }
+}
+
+// [EOF]
+?>
<?php
+// Own namespace
+namespace Hub\State\Cruncher;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Init cruncher state class
*
<?php
+// Own namespace
+namespace Hub\State\Cruncher;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Virgin cruncher state class
*
<?php
+// Own namespace
+namespace Hub\State\Dht;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Active dht state class
*
<?php
// Own namespace
-namespace Hub\State\Dht\Booting;
+namespace Hub\State\Dht;
// Import application-specific stuff
use Hub\Factory\Node\NodeObjectFactory;
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Booting dht state class
*
+++ /dev/null
-<?php
-/**
- * A ??? dht state class
- *
- * @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.0.0
- * @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
- *
- * 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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 Dht???State extends BaseDhtState implements Stateable {
- /**
- * Protected constructor
- *
- * @return void
- */
- protected function __construct () {
- // Call parent constructor
- parent::__construct(__CLASS__);
-
- // Set state name
- $this->setStateName('!!!');
- }
-
- /**
- * Creates an instance of this class
- *
- * @param $dhtInstance An instance of a Distributable class
- * @return $stateInstance An instance of a Stateable class
- */
- public final static function createDht???State (Distributable $dhtInstance) {
- // Get new instance
- $stateInstance = new Dht???State();
-
- // Debug message
- //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-STATE: Has changed from ' . $dhtInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
-
- // Set the dht instance
- $stateInstance->setDhtInstance($dhtInstance);
-
- // Return the prepared instance
- return $stateInstance;
- }
-}
-
-// [EOF]
-?>
--- /dev/null
+<?php
+// Own namespace
+namespace Hub\State\Dht\;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
+/**
+ * A ??? dht state class
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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 Dht???State extends BaseDhtState implements Stateable {
+ /**
+ * Protected constructor
+ *
+ * @return void
+ */
+ protected function __construct () {
+ // Call parent constructor
+ parent::__construct(__CLASS__);
+
+ // Set state name
+ $this->setStateName('!!!');
+ }
+
+ /**
+ * Creates an instance of this class
+ *
+ * @param $dhtInstance An instance of a Distributable class
+ * @return $stateInstance An instance of a Stateable class
+ */
+ public final static function createDht???State (Distributable $dhtInstance) {
+ // Get new instance
+ $stateInstance = new Dht???State();
+
+ // Debug message
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-STATE: Has changed from ' . $dhtInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
+
+ // Set the dht instance
+ $stateInstance->setDhtInstance($dhtInstance);
+
+ // Return the prepared instance
+ return $stateInstance;
+ }
+}
+
+// [EOF]
+?>
<?php
+// Own namespace
+namespace Hub\State\Dht;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Init dht state class
*
<?php
+// Own namespace
+namespace Hub\State\Dht;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Virgin dht state class
*
<?php
+// Own namespace
+namespace Hub\State\Miner;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Booting miner state class
*
<?php
+// Own namespace
+namespace Hub\State\Miner\;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A ??? miner state class
*
<?php
+// Own namespace
+namespace Hub\State\Miner;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Init miner state class
*
<?php
+// Own namespace
+namespace Hub\State\Miner;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Virgin miner state class
*
// Import framework stuff
use Hub\Factory\State\Node\NodeStateFactory;
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* An active node state class
*
<?php
+// Own namespace
+namespace Hub\State\Node;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A AnnouncementCompleted node state class
*
// Import framework stuff
use Hub\Factory\State\Node\NodeStateFactory;
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Announcing node state class
*
+++ /dev/null
-<?php
-// Own namespace
-namespace Hub\Node\State\;
-
-// Import application-specific stuff
-use Hub\Helper\Node\NodeHelper;
-
-/**
- * A ??? node state class
- *
- * @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.0.0
- * @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
- *
- * 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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 Node???State extends BaseNodeState implements Stateable {
- /**
- * Protected constructor
- *
- * @return void
- */
- protected function __construct () {
- // Call parent constructor
- parent::__construct(__CLASS__);
-
- // Set state name
- $this->setStateName('!!!');
- }
-
- /**
- * Creates an instance of this class
- *
- * @param $nodeInstance An instance of a NodeHelper class
- * @return $stateInstance An instance of a Stateable class
- */
- public final static function createNode???State (NodeHelper $nodeInstance) {
- // Get new instance
- $stateInstance = new Node???State();
-
- // Debug message
- //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE-STATE: Has changed from ' . $nodeInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
-
- // Set the node instance
- $stateInstance->setNodeInstance($nodeInstance);
-
- // Return the prepared instance
- return $stateInstance;
- }
-}
-
-// [EOF]
-?>
<?php
+// Own namespace
+namespace Hub\State\Node;
+
+// Import framework stuff
+use CoreFramework\State\BaseState;
+
/**
* A general node state class
*
--- /dev/null
+<?php
+// Own namespace
+namespace Hub\State\Node\;
+
+// Import application-specific stuff
+use Hub\Helper\Node\NodeHelper;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
+/**
+ * A ??? node state class
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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 Node???State extends BaseNodeState implements Stateable {
+ /**
+ * Protected constructor
+ *
+ * @return void
+ */
+ protected function __construct () {
+ // Call parent constructor
+ parent::__construct(__CLASS__);
+
+ // Set state name
+ $this->setStateName('!!!');
+ }
+
+ /**
+ * Creates an instance of this class
+ *
+ * @param $nodeInstance An instance of a NodeHelper class
+ * @return $stateInstance An instance of a Stateable class
+ */
+ public final static function createNode???State (NodeHelper $nodeInstance) {
+ // Get new instance
+ $stateInstance = new Node???State();
+
+ // Debug message
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE-STATE: Has changed from ' . $nodeInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
+
+ // Set the node instance
+ $stateInstance->setNodeInstance($nodeInstance);
+
+ // Return the prepared instance
+ return $stateInstance;
+ }
+}
+
+// [EOF]
+?>
// Import framework stuff
use Hub\Factory\State\Node\NodeStateFactory;
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A init node state class
*
// Import framework stuff
use Hub\Factory\State\Node\NodeStateFactory;
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Reachable node state class
*
// Import framework stuff
use Hub\Factory\State\Node\NodeStateFactory;
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A virgin node state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A ??? peer state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Connected peer state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A ConnectionRefused peer state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A ConnectionTimedOut peer state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A NoRouteToHost peer state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A OperationAlreadyProgress peer state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Problem peer state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A TransportEndpointGone peer state class
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* A Init peer state class
*
use CoreFramework\Controller\Controller;
use CoreFramework\Generic\FrameworkInterface;
use CoreFramework\Response\Responseable;
+use CoreFramework\State\Stateable;
/**
* An interface for crawler classes
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\State\Stateable;
/**
* A Executor interface
<?php
+// Own namespace
+namespace Hub\State\Peer\Lookup;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* An interface for peer-state lookup table wrappers
*
<?php
+// Own namespace
+namespace Hub\Producer\Block;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* An interface for the producer/consumer implementation, especially for block
* producers.
<?php
+// Own namespace
+namespace Hub\Producer\Key;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* An interface for the producer/consumer implementation, especially for key
* producers.
<?php
+// Own namespace
+namespace Hub\Producer\Unit;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* An interface for the producer/consumer implementation, especially for work/
* test unit producers.
+++ /dev/null
-<?php
-/**
- * An interface for ??? states
- *
- * @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.0.0
- * @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
- *
- * 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-interface ???Stateable extends Stateable {
-}
-
-// [EOF]
-?>
+++ /dev/null
-<?php
-// Own namespace
-namespace Hub\State;
-
-// Import framework stuff
-use CoreFramework\Generic\FrameworkInterface;
-
-/**
- * An interface for general states
- *
- * @author Roland Haeder <webmaster@shipsimu.org>
- * @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
- * @license GNU GPL 3.0 or any newer version
- * @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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-interface Stateable extends FrameworkInterface {
- /**
- * Executes the state with given Executor instance
- *
- * @param $executorInstance An instance of a Executor class
- * @return void
- */
- function executeState (Executor $executorInstance);
-}
-
-// [EOF]
-?>
<?php
+// Own namespace
+namespace Hub\State\Client;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* An interface for client states
*
<?php
+// Own namespace
+namespace Hub\State;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* An interface for hub states
*
<?php
+// Own namespace
+namespace Hub\State\Peer;
+
+// Import framework stuff
+use CoreFramework\State\Stateable;
+
/**
* An interface for Peer states
*