diff --git a/Algorithm/AlgorithmType.php b/Algorithm/AlgorithmType.php deleted file mode 100644 index 57b1c37fb..000000000 --- a/Algorithm/AlgorithmType.php +++ /dev/null @@ -1,32 +0,0 @@ -costMaximum = $costMaximum; - } - - public function addPopulationItem(ItemInterface $item) : bool - { - if (isset($this->population[$item->getId()])) { - return false; - } - - $this->population[$item->getId()] = $item; - - return true; - } - - public function setPopulationItem(ItemInterface $item) /* : void */ - { - $this->population[$item->getId()] = $item; - } - - public function setCostCalculation(\Closure $callback) /* : void */ - { - - } - - public function setValueCalculation(\Closure $callback) /* : void */ - { - - } - - public function setTestPopulationBuilder(\Closure $callback) /* : void */ - { - - } - - public function pack(int $type) - { - switch ($type) { - case AlgorithmType::BRUTEFORCE: - return $this->bruteforce(); - default: - throw new \Exception('Invalid algorithm type'); - } - } - - public function bruteforce() - { - } -} \ No newline at end of file diff --git a/Algorithm/Knappsack/ItemInterface.php b/Algorithm/Knappsack/ItemInterface.php deleted file mode 100644 index d01ec0ddc..000000000 --- a/Algorithm/Knappsack/ItemInterface.php +++ /dev/null @@ -1,30 +0,0 @@ -