function isAcceptingAnnouncements ();
/**
- * Checks whether this node has attempted to announce itself
+ * Checks whether this node has attempted to announce itself and completed it
*
- * @return $hasAnnounced Whether this node has attempted to announce itself
+ * @return $hasAnnounced Whether this node has attempted to announce itself and completed it
*/
- function ifNodeHasAnnounced ();
+ function ifNodeHasAnnouncementCompleted ();
/**
* Checks wether this node is accepting node-list requests
$nodeInstance = Registry::getRegistry()->getInstance('node');
// Has this node attempted to announce itself?
- if (!$nodeInstance->ifNodeHasAnnounced()) {
+ if (!$nodeInstance->ifNodeHasAnnouncementCompleted()) {
/*
* This node has never announced itself, so it doesn't expect
* announcement answer messages.
$nodeInstance = Registry::getRegistry()->getInstance('node');
// Has this node attempted to announce itself?
- if (!$nodeInstance->ifNodeHasAnnounced()) {
+ if (!$nodeInstance->ifNodeHasAnnouncementCompleted()) {
/*
* This node has never announced itself, so it doesn't expect
* request-node-list answer messages.
}
/**
- * Checks whether this node has attempted to announce itself
+ * Checks whether this node has attempted to announce itself and completed it
*
- * @return $hasAnnounced Whether this node has attempted to announce itself
+ * @return $hasAnnounced Whether this node has attempted to announce itself and completed it
* @todo Add checking if this node has been announced to the sender node
*/
- public function ifNodeHasAnnounced () {
+ public function ifNodeHasAnnouncementCompleted () {
// Debug message
- /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE: ifNodeHasAnnounced(): state=' . $this->getStateInstance()->getStateName());
+ /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE: ifNodeHasAnnouncementCompleted(): state=' . $this->getStateInstance()->getStateName());
// Simply check the state of this node
- $hasAnnounced = ($this->getStateInstance() instanceof NodeAnnouncedState);
+ $hasAnnounced = ($this->getStateInstance() instanceof NodeAnnouncementCompletedState);
// Debug message
- /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE: ifNodeHasAnnounced(): hasAnnounced=' . intval($hasAnnounced));
+ /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE: ifNodeHasAnnouncementCompleted(): hasAnnounced=' . intval($hasAnnounced));
// Return it
return $hasAnnounced;