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.
 
 
 
 

31 lines
1.1 KiB

#ifndef STORM_LOGIC_BOUNDEDUNTILFORMULA_H_
#define STORM_LOGIC_BOUNDEDUNTILFORMULA_H_
#include <boost/variant.hpp>
#include "src/logic/BinaryPathFormula.h"
namespace storm {
namespace logic {
class BoundedUntilFormula : public BinaryPathFormula {
public:
BoundedUntilFormula(std::shared_ptr<Formula> const& leftSubformula, std::shared_ptr<Formula> const& rightSubformula, double lowerBound, double upperBound);
BoundedUntilFormula(std::shared_ptr<Formula> const& leftSubformula, std::shared_ptr<Formula> const& rightSubformula, uint_fast64_t upperBound);
virtual bool isBoundedUntilFormula() const override;
bool isIntervalBounded() const;
bool isIntegerUpperBounded() const;
std::pair<double, double> const& getIntervalBounds() const;
uint_fast64_t getUpperBound() const;
virtual std::ostream& writeToStream(std::ostream& out) const override;
private:
boost::variant<uint_fast64_t, std::pair<double, double>> bounds;
};
}
}
#endif /* STORM_LOGIC_BOUNDEDUNTILFORMULA_H_ */