12template<
typename RationalType>
19template<
typename RationalType>
22 this->variableToExpressionMap[variable] = this->getManager().boolean(value);
25template<
typename RationalType>
28 this->variableToExpressionMap[variable] = this->getManager().integer(value);
31template<
typename RationalType>
34 this->variableToExpressionMap[variable] = this->getManager().rational(value);
51 rationalNumberVisitor.setMapping(variable, storm::utility::convertNumber<RationalNumber>(value));
56 rationalNumberVisitor.setMapping(variable, storm::utility::convertNumber<RationalNumber>(value));
61 rationalNumberVisitor.setMapping(variable, value);
64RationalNumber ExpressionEvaluator<RationalNumber>::asRational(Expression
const& expression)
const {
65 RationalNumber result = this->rationalNumberVisitor.toRationalNumber(expression);
82 rationalFunctionVisitor.setMapping(variable, storm::utility::convertNumber<RationalFunction>(value));
87 rationalFunctionVisitor.setMapping(variable, storm::utility::convertNumber<RationalFunction>(value));
93 rationalFunctionVisitor.setMapping(variable, value);
96RationalFunction ExpressionEvaluator<RationalFunction>::asRational(Expression
const& expression)
const {
97 return this->rationalFunctionVisitor.toRationalFunction(expression);
100template class ExpressionEvaluatorWithVariableToExpressionMap<RationalNumber>;
101template class ExpressionEvaluatorWithVariableToExpressionMap<RationalFunction>;
void setRationalValue(storm::expressions::Variable const &variable, double value) override
void setBooleanValue(storm::expressions::Variable const &variable, bool value) override
void setIntegerValue(storm::expressions::Variable const &variable, int_fast64_t value) override
ExpressionEvaluatorWithVariableToExpressionMap(storm::expressions::ExpressionManager const &manager)
This class is responsible for managing a set of typed variables and all expressions using these varia...
void setIntegerValue(storm::expressions::Variable const &variable, int_fast64_t value) override
void setBooleanValue(storm::expressions::Variable const &variable, bool value) override
void setRationalValue(storm::expressions::Variable const &variable, double value) override
#define STORM_LOG_ASSERT(cond, message)
SettingsManager const & manager()
Retrieves the settings manager.
bool isConstant(ValueType const &)
carl::RationalFunction< Polynomial, true > RationalFunction