/**
* 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 createNodeReachableState (NodeHelper $nodeInstance) {
+ public final static function createNodeReachableState () {
// Get new instance
$stateInstance = new NodeReachableState();
- // 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;
}
*/
public function nodeAnnouncingToUpperHubs () {
// Create the new state instance
- NodeStateFactory::createNodeStateInstanceByName('announcing', $this->getNodeInstance());
+ NodeStateFactory::createNodeStateInstanceByName('announcing');
}
}