You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
28 lines
1.2 KiB
#include "src/storage/jani/BooleanVariable.h"
|
|
|
|
namespace storm {
|
|
namespace jani {
|
|
|
|
BooleanVariable::BooleanVariable(std::string const& name, storm::expressions::Variable const& variable) : Variable(name, variable) {
|
|
// Intentionally left empty.
|
|
}
|
|
|
|
BooleanVariable::BooleanVariable(std::string const& name, storm::expressions::Variable const& variable, storm::expressions::Expression const& initValue, bool transient) : Variable(name, variable, initValue, transient) {
|
|
// Intentionally left empty.
|
|
}
|
|
|
|
bool BooleanVariable::isBooleanVariable() const {
|
|
return true;
|
|
}
|
|
|
|
std::shared_ptr<BooleanVariable> makeBooleanVariable(std::string const& name, storm::expressions::Variable const& variable, boost::optional<storm::expressions::Expression> initValue, bool transient) {
|
|
if (initValue) {
|
|
return std::make_shared<BooleanVariable>(name, variable, initValue.get(), transient);
|
|
} else {
|
|
assert(!transient);
|
|
return std::make_shared<BooleanVariable>(name, variable);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|