public function getResultByIndex($index)
    {
        $res = null;
        foreach ($this->results as $result) {
            if ($result->getIndex() == $index) {
                $res = $result;
            }
        }
        return $res;
    }