+
+ /**
+ * Checks whether the DHT's state is 'booting' by comparing it with the
+ * state's class name.
+ *
+ * @return $isBooting Whether this DHT's state is 'booting'
+ */
+ public function ifDhtIsBooting () {
+ // Check state
+ $isBooting = ($this instanceof DhtBootingState);
+
+ // Return status
+ return $isBooting;
+ }