use Org\Shipsimu\Hub\Network\Delivery\Deliverable;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Handler\Handleable;
use Org\Mxchange\CoreFramework\Stacker\Stackable;
/**
*/
private $stackInstance = NULL;
+ /**
+ * Handler instance
+ */
+ private $handlerInstance = NULL;
+
/**
* Protected constructor
*
return $this->stackInstance;
}
+ /**
+ * Setter for handler instance
+ *
+ * @param $handlerInstance An instance of a Handleable class
+ * @return void
+ */
+ protected final function setHandlerInstance (Handleable $handlerInstance) {
+ $this->handlerInstance = $handlerInstance;
+ }
+
+ /**
+ * Getter for handler instance
+ *
+ * @return $handlerInstance A Handleable instance
+ */
+ protected final function getHandlerInstance () {
+ return $this->handlerInstance;
+ }
+
}
* @param $protocolName Name of used protocol
* @return void
*/
- protected final function setProtocolName ($protocolName) {
+ protected final function setProtocolName (string $protocolName) {
$this->protocolName = $protocolName;
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Handler\Handleable;
/**
* A ??? connection helper class
*/
private $protocolName = 'invalid';
+ /**
+ * Handler instance
+ */
+ private $handlerInstance = NULL;
+
/**
* Protected constructor
*
parent::__construct($className);
}
+ /**
+ * Setter for protocol name
+ *
+ * @param $protocolName Name of used protocol
+ * @return void
+ */
+ protected final function setProtocolName (string $protocolName) {
+ $this->protocolName = $protocolName;
+ }
+
+ /**
+ * Getter for protocol name
+ *
+ * @return $protocolName Name of used protocol
+ */
+ public final function getProtocolName () {
+ return $this->protocolName;
+ }
+
+ /**
+ * Setter for handler instance
+ *
+ * @param $handlerInstance An instance of a Handleable class
+ * @return void
+ */
+ protected final function setHandlerInstance (Handleable $handlerInstance) {
+ $this->handlerInstance = $handlerInstance;
+ }
+
+ /**
+ * Getter for handler instance
+ *
+ * @return $handlerInstance A Handleable instance
+ */
+ protected final function getHandlerInstance () {
+ return $this->handlerInstance;
+ }
+
/**
* Attempts to connect to a peer by given IP number and port from an UNL
* instance with currently configured timeout.
$this->initSocketInstance();
}
- /**
- * Setter for protocol name
- *
- * @param $protocolName Name of used protocol
- * @return void
- */
- protected final function setProtocolName ($protocolName) {
- $this->protocolName = $protocolName;
- }
-
- /**
- * Getter for protocol name
- *
- * @return $protocolName Name of used protocol
- */
- public final function getProtocolName () {
- return $this->protocolName;
- }
-
}
// Import application-specific stuff
use Org\Shipsimu\Hub\Generic\BaseHubSystem;
-// Import framework-specific stuff
+// Import framework stuff
use Org\Mxchange\CoreFramework\Helper\Helper;
/**
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
use Org\Mxchange\CoreFramework\Factory\Registry\Socket\SocketRegistryFactory;
use Org\Mxchange\CoreFramework\Generic\NullPointerException;
+use Org\Mxchange\CoreFramework\Handler\Handleable;
use Org\Mxchange\CoreFramework\Registry\Register;
use Org\Mxchange\CoreFramework\Socket\InvalidServerSocketException;
use Org\Mxchange\CoreFramework\Socket\SocketAlreadyRegisteredException;
*/
private $registryInstance = NULL;
+ /**
+ * Handler instance
+ */
+ private $handlerInstance = NULL;
+
/**
* Protected constructor
*
return $this->registryInstance;
}
+ /**
+ * Setter for handler instance
+ *
+ * @param $handlerInstance An instance of a Handleable class
+ * @return void
+ */
+ protected final function setHandlerInstance (Handleable $handlerInstance) {
+ $this->handlerInstance = $handlerInstance;
+ }
+
+ /**
+ * Getter for handler instance
+ *
+ * @return $handlerInstance A Handleable instance
+ */
+ public final function getHandlerInstance () {
+ return $this->handlerInstance;
+ }
+
/**
* Registeres the given socket resource for "this" listener instance. This
* will be done in a seperate class to allow package writers to use it
* @param $protocolName Name of used protocol
* @return void
*/
- protected final function setProtocolName ($protocolName) {
+ protected final function setProtocolName (string $protocolName) {
$this->protocolName = $protocolName;
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Handler\Handleable;
use Org\Mxchange\CoreFramework\Registry\Registerable;
use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
use Org\Mxchange\CoreFramework\Stacker\Stackable;
*/
private $stackInstance = NULL;
+ /**
+ * Handler instance
+ */
+ private $handlerInstance = NULL;
+
/**
* Protected constructor
*
return $this->stackInstance;
}
+ /**
+ * Setter for handler instance
+ *
+ * @param $handlerInstance An instance of a Handleable class
+ * @return void
+ */
+ protected final function setHandlerInstance (Handleable $handlerInstance) {
+ $this->handlerInstance = $handlerInstance;
+ }
+
+ /**
+ * Getter for handler instance
+ *
+ * @return $handlerInstance A Handleable instance
+ */
+ protected final function getHandlerInstance () {
+ return $this->handlerInstance;
+ }
+
/**
* Checks whether the input buffer (stacker to be more preceise) is empty.
*
use Org\Shipsimu\Hub\Task\BaseHubTask;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Handler\Handleable;
use Org\Mxchange\CoreFramework\Task\BaseTask;
use Org\Mxchange\CoreFramework\Task\Taskable;
use Org\Mxchange\CoreFramework\Visitor\Visitable;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class NodeChunkAssemblerTask extends BaseHubTask implements Taskable, Visitable {
+ /**
+ * Handler instance
+ */
+ private $handlerInstance = NULL;
+
/**
* Protected constructor
*
parent::__construct(__CLASS__);
}
+ /**
+ * Setter for handler instance
+ *
+ * @param $handlerInstance An instance of a Handleable class
+ * @return void
+ */
+ protected final function setHandlerInstance (Handleable $handlerInstance) {
+ $this->handlerInstance = $handlerInstance;
+ }
+
+ /**
+ * Getter for handler instance
+ *
+ * @return $handlerInstance A Handleable instance
+ */
+ protected final function getHandlerInstance () {
+ return $this->handlerInstance;
+ }
+
/**
* Creates an instance of this class
*
-Subproject commit 28ff0710d8eb3a2d0c1547d6ebeaae05eb50c7f6
+Subproject commit 2b0e7f20e7d554a5675c3268db6de3dd3ab3421d