public function setComponent(QtiComponent $printedVariable)
    {
        if ($printedVariable instanceof PrintedVariable) {
            parent::setComponent($printedVariable);
        } else {
            $msg = "The PrintedVariableEngine class only accepts PrintedVariable objects to be executed.";
            throw new InvalidArgumentException($msg);
        }
    }