* @return void
*/
public function sendPackage (Distributable $dhtInstance) {
- // Sanity check: Is the dht in the approx. state? (init)
- $dhtInstance->getStateInstance()->validateDhtStateIsInitialized();
+ // Sanity check: Is the dht in the approx. state? (virgin)
+ $dhtInstance->getStateInstance()->validateDhtStateIsVirgin();
// Compile the template, this inserts the loaded dht data into the gaps.
$this->getTemplateInstance()->compileTemplate();
}
/**
- * Validates whether the DHT state is 'init' or throws an exception if it
+ * Validates whether the DHT state is 'virgin' or throws an exception if it
* is every other state.
*
* @return void
- * @throws InvalidStateException If the state is not 'active'
+ * @throws InvalidStateException If the state is not 'virgin'
*/
- public function validateDhtStateIsInitialized () {
+ public function validateDhtStateIsVirgin () {
// Just compare it...
- if (!$this instanceof DhtInitState) {
+ if (!$this instanceof DhtVirginState) {
// Throw the exception
throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
} // END - if