Browse Source

Merge branch 'future' into menu_games

Former-commit-id: 4c9ddacf52
tempestpy_adaptions
dehnert 9 years ago
parent
commit
3bc629561e
  1. 2
      src/modelchecker/results/CheckResult.h
  2. 1
      src/modelchecker/results/ExplicitQualitativeCheckResult.h
  3. 1
      src/modelchecker/results/ExplicitQuantitativeCheckResult.h
  4. 1
      src/modelchecker/results/QualitativeCheckResult.h
  5. 3
      src/modelchecker/results/QuantitativeCheckResult.h
  6. 6
      src/utility/ConstantsComparator.cpp

2
src/modelchecker/results/CheckResult.h

@ -21,6 +21,8 @@ namespace storm {
// The base class of all check results. // The base class of all check results.
class CheckResult { class CheckResult {
public: public:
virtual ~CheckResult() = default;
/*! /*!
* Filters the current result wrt. to the filter, i.e. only keeps the entries that are selected by the filter. * Filters the current result wrt. to the filter, i.e. only keeps the entries that are selected by the filter.
* This means that the filter must be a qualitative result of proper type (symbolic/explicit). * This means that the filter must be a qualitative result of proper type (symbolic/explicit).

1
src/modelchecker/results/ExplicitQualitativeCheckResult.h

@ -18,6 +18,7 @@ namespace storm {
typedef std::map<storm::storage::sparse::state_type, bool> map_type; typedef std::map<storm::storage::sparse::state_type, bool> map_type;
ExplicitQualitativeCheckResult(); ExplicitQualitativeCheckResult();
virtual ~ExplicitQualitativeCheckResult() = default;
ExplicitQualitativeCheckResult(map_type const& map); ExplicitQualitativeCheckResult(map_type const& map);
ExplicitQualitativeCheckResult(map_type&& map); ExplicitQualitativeCheckResult(map_type&& map);
ExplicitQualitativeCheckResult(storm::storage::sparse::state_type state, bool value); ExplicitQualitativeCheckResult(storm::storage::sparse::state_type state, bool value);

1
src/modelchecker/results/ExplicitQuantitativeCheckResult.h

@ -30,6 +30,7 @@ namespace storm {
ExplicitQuantitativeCheckResult(ExplicitQuantitativeCheckResult&& other) = default; ExplicitQuantitativeCheckResult(ExplicitQuantitativeCheckResult&& other) = default;
ExplicitQuantitativeCheckResult& operator=(ExplicitQuantitativeCheckResult&& other) = default; ExplicitQuantitativeCheckResult& operator=(ExplicitQuantitativeCheckResult&& other) = default;
#endif #endif
virtual ~ExplicitQuantitativeCheckResult() = default;
ValueType& operator[](storm::storage::sparse::state_type state); ValueType& operator[](storm::storage::sparse::state_type state);
ValueType const& operator[](storm::storage::sparse::state_type state) const; ValueType const& operator[](storm::storage::sparse::state_type state) const;

1
src/modelchecker/results/QualitativeCheckResult.h

@ -7,6 +7,7 @@ namespace storm {
namespace modelchecker { namespace modelchecker {
class QualitativeCheckResult : public CheckResult { class QualitativeCheckResult : public CheckResult {
public: public:
virtual ~QualitativeCheckResult() = default;
virtual QualitativeCheckResult& operator&=(QualitativeCheckResult const& other); virtual QualitativeCheckResult& operator&=(QualitativeCheckResult const& other);
virtual QualitativeCheckResult& operator|=(QualitativeCheckResult const& other); virtual QualitativeCheckResult& operator|=(QualitativeCheckResult const& other);
virtual void complement(); virtual void complement();

3
src/modelchecker/results/QuantitativeCheckResult.h

@ -7,6 +7,9 @@ namespace storm {
namespace modelchecker { namespace modelchecker {
class QuantitativeCheckResult : public CheckResult { class QuantitativeCheckResult : public CheckResult {
public: public:
virtual ~QuantitativeCheckResult() = default;
virtual std::unique_ptr<CheckResult> compareAgainstBound(storm::logic::ComparisonType comparisonType, double bound) const; virtual std::unique_ptr<CheckResult> compareAgainstBound(storm::logic::ComparisonType comparisonType, double bound) const;
virtual bool isQuantitative() const override; virtual bool isQuantitative() const override;

6
src/utility/ConstantsComparator.cpp

@ -12,12 +12,12 @@ namespace storm {
namespace utility { namespace utility {
template<typename ValueType> template<typename ValueType>
bool ConstantsComparator<ValueType>::isOne(ValueType const& value) const { bool ConstantsComparator<ValueType>::isOne(ValueType const& value) const {
return isOne(value);
return storm::utility::isOne(value);
} }
template<typename ValueType> template<typename ValueType>
bool ConstantsComparator<ValueType>::isZero(ValueType const& value) const { bool ConstantsComparator<ValueType>::isZero(ValueType const& value) const {
return isZero(value);
return storm::utility::isZero(value);
} }
template<typename ValueType> template<typename ValueType>
@ -27,7 +27,7 @@ namespace storm {
template<typename ValueType> template<typename ValueType>
bool ConstantsComparator<ValueType>::isConstant(ValueType const& value) const { bool ConstantsComparator<ValueType>::isConstant(ValueType const& value) const {
return isConstant(value);
return storm::utility::isConstant(value);
} }
template<typename ValueType> template<typename ValueType>

Loading…
Cancel
Save