use Org\Shipsimu\Hub\Listener\Listenable;
use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
use Org\Shipsimu\Hub\Network\Delivery\Deliverable;
-use Org\Shipsimu\Hub\Network\Package\Receiver\Assembler\Assembler;
use Org\Shipsimu\Hub\Network\Package\DeliverablePackage;
use Org\Shipsimu\Hub\Network\Package\Delivery\Fragment\Fragmentable;
use Org\Shipsimu\Hub\Network\Receive\Receivable;
*/
private $fragmenterInstance = NULL;
- /**
- * Assembler instance
- */
- private $assemblerInstance = NULL;
-
/**
* Info instance
*/
return $this->fragmenterInstance;
}
- /**
- * Setter for assembler instance
- *
- * @param $assemblerInstance An instance of an Assembler class
- * @return void
- */
- protected final function setAssemblerInstance (Assembler $assemblerInstance) {
- $this->assemblerInstance = $assemblerInstance;
- }
-
- /**
- * Getter for assembler instance
- *
- * @return $assemblerInstance An instance of an Assembler class
- */
- protected final function getAssemblerInstance () {
- return $this->assemblerInstance;
- }
-
/**
* Setter for info instance
*
use Org\Shipsimu\Hub\Information\ShareableInfo;
use Org\Shipsimu\Hub\Listener\Listenable;
use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Network\Package\Receiver\Assembler\Assembler;
use Org\Shipsimu\Hub\Node\Node;
use Org\Shipsimu\Hub\Pool\Poolable;
*/
private $universalNodeLocatorInstance = NULL;
+ /**
+ * Assembler instance
+ */
+ private $assemblerInstance = NULL;
+
/**
* Protected constructor
*
return $this->nodeInstance;
}
+ /**
+ * Setter for assembler instance
+ *
+ * @param $assemblerInstance An instance of an Assembler class
+ * @return void
+ */
+ protected final function setAssemblerInstance (Assembler $assemblerInstance) {
+ $this->assemblerInstance = $assemblerInstance;
+ }
+
+ /**
+ * Getter for assembler instance
+ *
+ * @return $assemblerInstance An instance of an Assembler class
+ */
+ protected final function getAssemblerInstance () {
+ return $this->assemblerInstance;
+ }
+
}
$packageInstance->setPrivateKeyHash($this->getNodeInstance()->getPrivateKeyHash());
// Now prepare the temporary array and push it on the 'undeclared' stack
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE: Pushing packageInstance=%s to stack %s ...', $packageInstance->__toString(), self::STACKER_NAME_UNDECLARED));
$this->getStackInstance()->pushNamed(self::STACKER_NAME_UNDECLARED, $packageInstance);
// Debug message
*/
public function isPackageEnqueued () {
// Check whether the stacker is not empty
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: CALLED!');
$isEnqueued = (
($this->getStackInstance()->isStackInitialized(self::STACKER_NAME_UNDECLARED)) &&
(!$this->getStackInstance()->isStackEmpty(self::STACKER_NAME_UNDECLARED))
);
- // Trace message
- //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE: isEnqueued=%d - EXIT!', intval($isEnqueued)));
// Return the result
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE: isEnqueued=%d - EXIT!', intval($isEnqueued)));
return $isEnqueued;
}
-Subproject commit f6a7ed0407c3411090a697ba0831bb0d6f4bb616
+Subproject commit e1220edf0b09e635b818aba6465f2b7d47e7d310