Browse Source

removed unused code and added method desc

tempestpy_adaptions
Stefan Pranger 3 years ago
parent
commit
b73b0b2a75
  1. 5
      src/storm/shields/AbstractShield.cpp
  2. 10
      src/storm/shields/AbstractShield.h

5
src/storm/shields/AbstractShield.cpp

@ -24,11 +24,6 @@ namespace tempest {
return rowGroupSizes; return rowGroupSizes;
} }
template<typename ValueType, typename IndexType>
bool AbstractShield<ValueType, IndexType>::allowedValue(ValueType const& max, ValueType const& v, std::shared_ptr<storm::logic::ShieldExpression const> const shieldExpression) {
return shieldExpression->isRelative() ? v >= shieldExpression->getValue() * max : v >= shieldExpression->getValue();
}
template<typename ValueType, typename IndexType> template<typename ValueType, typename IndexType>
storm::OptimizationDirection AbstractShield<ValueType, IndexType>::getOptimizationDirection() { storm::OptimizationDirection AbstractShield<ValueType, IndexType>::getOptimizationDirection() {
return optimizationDirection; return optimizationDirection;

10
src/storm/shields/AbstractShield.h

@ -38,20 +38,12 @@ namespace tempest {
virtual ~AbstractShield() = 0; virtual ~AbstractShield() = 0;
/*! /*!
* TODO
* Computes the sizes of the row groups based on the indices given.
*/ */
std::vector<IndexType> computeRowGroupSizes(); std::vector<IndexType> computeRowGroupSizes();
/*!
* TODO
*/
bool allowedValue(ValueType const& max, ValueType const& v, std::shared_ptr<storm::logic::ShieldExpression const> const shieldExpression);
storm::OptimizationDirection getOptimizationDirection(); storm::OptimizationDirection getOptimizationDirection();
/*!
* TODO
*/
std::string getClassName() const; std::string getClassName() const;
protected: protected:

Loading…
Cancel
Save