diff --git a/Creational/Pool/uml/Pool.uml b/Creational/Pool/uml/Pool.uml index 5a770de..8f3a757 100644 --- a/Creational/Pool/uml/Pool.uml +++ b/Creational/Pool/uml/Pool.uml @@ -1,22 +1,20 @@ - - - PHP - \DesignPatterns\Creational\Pool\Processor - - \DesignPatterns\Creational\Pool\Pool - \DesignPatterns\Creational\Pool\Processor - \DesignPatterns\Creational\Pool\Worker - - - - - - - Fields - Constants - Constructors - Methods - - private - - + + + PHP + \DesignPatterns\Creational\Pool\StringReverseWorker + + \DesignPatterns\Creational\Pool\StringReverseWorker + \DesignPatterns\Creational\Pool\WorkerPool + + + + + + + Fields + Methods + Constructors + + private + + diff --git a/Creational/Pool/uml/uml.png b/Creational/Pool/uml/uml.png index 4bcb05c..5d32c8b 100644 Binary files a/Creational/Pool/uml/uml.png and b/Creational/Pool/uml/uml.png differ diff --git a/Creational/Pool/uml/uml.svg b/Creational/Pool/uml/uml.svg index 4ddd1b4..508ecf6 100644 --- a/Creational/Pool/uml/uml.svg +++ b/Creational/Pool/uml/uml.svg @@ -1,467 +1,512 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - instances - - - - - - - - - - class - - - - - - - - - - - - __construct(class) - - - - - - - - - - - - get() - - - - - - - - - dispose(instance) - - - - - - - - - - - - - Pool - - - Pool - - - - - - - - - - - - - - - - - - - pool - - - - - - - - - - processing - - - - - - - - - - maxProcesses - - - - - - - - - - waitingQueue - - - - - - - - - - - - __construct(pool) - - - - - - - - - - - - process(image) - - - - - - - - - createWorker(image) - - - - - - - - - processDone(worker) - - - - - - - - - pushToWaitingQueue(image) - - - - - - - - - popFromWaitingQueue() - - - - - - - - - - - - - Processor - - - Processor - - - - - - - - - - - - - - - - - - __construct() - - - - - - - - - - - - run(image, callback) - - - - - - - - - - - - - Worker - - - Worker - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + createdAt + + + + + + + + + + + + + + + + + + + __construct() + + + + + + + + + + + + + + + + + + + run(text) + + + + + + + + + + + + + StringReverseWorker + + + StringReverseWorker + + + + + + + + + + + + + + + + + + + + + + createdAt + + + + + + + + + + + + + + + + + + + __construct() + + + + + + + + + + + + + + + + + + + run(text) + + + + + + + + + + + + + StringReverseWorker + + + StringReverseWorker + + + + + + + + + + + + + + + + + + + + + + + + + occupiedWorkers + + + + + + + + + + + + + + + + freeWorkers + + + + + + + + + + + + + + + + + + + get() + + + + + + + + + + + + + + + + dispose(worker) + + + + + + + + + + + + + + + + count() + + + + + + + + + + + + + WorkerPool + + + WorkerPool + + + + + + + + + + + + + + + + + + + + + + occupiedWorkers + + + + + + + + + + + + + + + + freeWorkers + + + + + + + + + + + + + + + + + + + get() + + + + + + + + + + + + + + + + dispose(worker) + + + + + + + + + + + + + + + + count() + + + + + + + + + + + + + WorkerPool + + + WorkerPool + + +