31 uint64_t
const numEntities = 0);
76 template<
typename RationalValueType>
110 std::string
toString(uint64_t
const entity,
bool const pretty =
true,
111 std::optional<std::set<storm::expressions::Variable>>
const& selectedVariables = {})
const;
118 template<
typename JsonRationalType = storm::RationalNumber>
132 std::size_t
hash()
const;
135 std::unique_ptr<ValuationsStorage> umbValuations;
This class is responsible for managing a set of typed variables and all expressions using these varia...
A bit vector that is internally represented as a vector of 64-bit values.
storm::RationalNumber getRationalValue(uint64_t const entity, storm::expressions::Variable const &rationalVariable) const
bool entityHasVariable(uint64_t entity, storm::expressions::Variable const &variable) const
Returns true iff the variable is relevant for the given entity.
void setValuesInEvaluator(uint64_t entity, storm::expressions::ExpressionEvaluator< RationalValueType > &evaluator) const
Reads the variable values for the given entity and sets them into the given expression evaluator.
double getDoubleValue(uint64_t const entity, storm::expressions::Variable const &doubleVariable) const
std::optional< bool > getOptionalBooleanValue(uint64_t const entity, storm::expressions::Variable const &booleanVariable) const
storm::storage::BitVector getBooleanValues(storm::expressions::Variable const &booleanVariable) const
Returns a vector of size getNumberOfEntities() such that the i'th entry is the value of the given var...
std::string toString(uint64_t const entity, bool const pretty=true, std::optional< std::set< storm::expressions::Variable > > const &selectedVariables={}) const
Returns a string representation of the valuation.
Valuations & operator=(Valuations &&other)
std::vector< int64_t > getInt64Values(storm::expressions::Variable const &integerVariable) const
Returns a vector of size getNumberOfEntities() such that the i'th entry is the value of the given var...
std::string getStringValue(uint64_t const entity, storm::expressions::Variable const &stringVariable) const
std::vector< std::string > getStringValues(storm::expressions::Variable const &stringVariable) const
Returns a vector of size getNumberOfEntities() such that the i'th entry is the value of the given var...
std::vector< storm::RationalNumber > getRationalValues(storm::expressions::Variable const &rationalVariable) const
Returns a vector of size getNumberOfEntities() such that the i'th entry is the value of the given var...
storm::json< JsonRationalType > toJson(uint64_t const entity, std::optional< std::set< storm::expressions::Variable > > const &selectedVariables={}) const
Returns a JSON representation of this valuation.
std::optional< storm::RationalNumber > getOptionalRationalValue(uint64_t const entity, storm::expressions::Variable const &rationalVariable) const
std::vector< double > getDoubleValues(storm::expressions::Variable const &doubleVariable) const
Returns a vector of size getNumberOfEntities() such that the i'th entry is the value of the given var...
uint64_t getNumberOfEntities() const
Valuations(Valuations &&other)
Valuations(ValuationClassDescription const valuationClassDescription, std::shared_ptr< storm::expressions::ExpressionManager const > const &manager={}, uint64_t const numEntities=0)
std::set< storm::expressions::Variable > getAllVariables() const
storm::expressions::ExpressionManager const & getManager() const
std::optional< double > getOptionalDoubleValue(uint64_t const entity, storm::expressions::Variable const &doubleVariable) const
bool getBooleanValue(uint64_t const entity, storm::expressions::Variable const &booleanVariable) const
int64_t getInt64Value(uint64_t const entity, storm::expressions::Variable const &integerVariable) const
Valuations selectEntities(storm::storage::BitVector const &selectedEntities) const
Derive new valuations from this by selecting the given entities.
ValuationsStorage const & getStorage() const
std::optional< int64_t > getOptionalInt64Value(uint64_t const entity, storm::expressions::Variable const &integerVariable) const
std::optional< std::string > getOptionalStringValue(uint64_t const entity, storm::expressions::Variable const &stringVariable) const
Stores valuations of variables for a set of entities (e.g.
nlohmann::basic_json< std::map, std::vector, std::string, bool, int64_t, uint64_t, ValueType > json
Describes the layout of a class of valuations (e.g.