Browse Source

builder options have uniform signature

tempestpy_adaptions
sjunges 7 years ago
parent
commit
bf6258bd86
  1. 8
      src/storm/builder/BuilderOptions.cpp
  2. 12
      src/storm/builder/BuilderOptions.h

8
src/storm/builder/BuilderOptions.cpp

@ -157,8 +157,8 @@ namespace storm {
return buildAllLabels; return buildAllLabels;
} }
BuilderOptions& BuilderOptions::setBuildAllRewardModels() {
buildAllRewardModels = true;
BuilderOptions& BuilderOptions::setBuildAllRewardModels(bool newValue) {
buildAllRewardModels = newValue;
return *this; return *this;
} }
@ -185,8 +185,8 @@ namespace storm {
return *this; return *this;
} }
BuilderOptions& BuilderOptions::setBuildAllLabels() {
buildAllLabels = true;
BuilderOptions& BuilderOptions::setBuildAllLabels(bool newValue) {
buildAllLabels = newValue;
return *this; return *this;
} }

12
src/storm/builder/BuilderOptions.h

@ -97,17 +97,17 @@ namespace storm {
bool isExplorationShowProgressSet() const; bool isExplorationShowProgressSet() const;
uint64_t getExplorationShowProgressDelay() const; uint64_t getExplorationShowProgressDelay() const;
BuilderOptions& setBuildAllRewardModels();
BuilderOptions& setBuildAllRewardModels(bool newValue = true);
BuilderOptions& addRewardModel(std::string const& rewardModelName); BuilderOptions& addRewardModel(std::string const& rewardModelName);
BuilderOptions& setBuildAllLabels();
BuilderOptions& setBuildAllLabels(bool newValue = true);
BuilderOptions& addLabel(storm::expressions::Expression const& expression); BuilderOptions& addLabel(storm::expressions::Expression const& expression);
BuilderOptions& addLabel(std::string const& labelName); BuilderOptions& addLabel(std::string const& labelName);
BuilderOptions& addTerminalExpression(storm::expressions::Expression const& expression, bool value); BuilderOptions& addTerminalExpression(storm::expressions::Expression const& expression, bool value);
BuilderOptions& addTerminalLabel(std::string const& label, bool value); BuilderOptions& addTerminalLabel(std::string const& label, bool value);
BuilderOptions& setBuildChoiceLabels(bool newValue);
BuilderOptions& setBuildStateValuations(bool newValue);
BuilderOptions& setBuildChoiceOrigins(bool newValue);
BuilderOptions& setExplorationChecks(bool newValue);
BuilderOptions& setBuildChoiceLabels(bool newValue = true);
BuilderOptions& setBuildStateValuations(bool newValue = true);
BuilderOptions& setBuildChoiceOrigins(bool newValue = true);
BuilderOptions& setExplorationChecks(bool newValue = true);
private: private:
/// A flag that indicates whether all reward models are to be built. In this case, the reward model names are /// A flag that indicates whether all reward models are to be built. In this case, the reward model names are

Loading…
Cancel
Save