<?php
/**
- * A Virgin node state class
+ * A virgin node state class
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
* 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 NodeVirginState extends BaseState implements NodeStateable {
+class NodeVirginState extends BaseNodeState implements Stateable {
/**
* Protected constructor
*
* Creates an instance of this class
*
* @param $nodeInstance An instance of a NodeHelper class
- * @return $stateInstance An instance of a NodeStateable class
+ * @return $stateInstance An instance of a Stateable class
*/
public final static function createNodeVirginState (NodeHelper $nodeInstance) {
// Get new instance
$stateInstance = new NodeVirginState();
// Debug message
- $stateInstance->debugOutput("NODE-STATE: Has changed from " . $nodeInstance->getPrintableState() . " to " . $stateInstance->getStateName() . ".");
+ $stateInstance->debugOutput('NODE-STATE: Has changed from ' . $nodeInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
// Set the node instance
$stateInstance->setNodeInstance($nodeInstance);
}
/**
- * Change the state to 'activate' when the hub has initialized all
+ * Change the state to 'active' when the hub has initialized all
* listeners, tasks, queues, etc. An active hub does not imply that it
* can be reached from outside so we have to deal with that state with
* yet another state class.
*/
public function nodeIsActivated () {
// Create the new state instance
- NodeStateFactory::createNodeStateInstanceByName('active', $this->getNodeInstance());
+ StateFactory::createStateInstanceByName('active', $this->getNodeInstance());
}
}