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.
33 lines
1.1 KiB
33 lines
1.1 KiB
#include "storm/environment/solver/MultiplierEnvironment.h"
|
|
|
|
#include "storm/settings/SettingsManager.h"
|
|
#include "storm/settings/modules/MultiplierSettings.h"
|
|
#include "storm/utility/constants.h"
|
|
#include "storm/utility/macros.h"
|
|
|
|
namespace storm {
|
|
|
|
MultiplierEnvironment::MultiplierEnvironment() {
|
|
auto const& multiplierSettings = storm::settings::getModule<storm::settings::modules::MultiplierSettings>();
|
|
type = multiplierSettings.getMultiplierType();
|
|
typeSetFromDefault = multiplierSettings.isMultiplierTypeSetFromDefaultValue();
|
|
}
|
|
|
|
MultiplierEnvironment::~MultiplierEnvironment() {
|
|
// Intentionally left empty
|
|
}
|
|
|
|
storm::solver::MultiplierType const& MultiplierEnvironment::getType() const {
|
|
return type;
|
|
}
|
|
|
|
bool const& MultiplierEnvironment::isTypeSetFromDefault() const {
|
|
return typeSetFromDefault;
|
|
}
|
|
|
|
void MultiplierEnvironment::setType(storm::solver::MultiplierType value, bool isSetFromDefault) {
|
|
type = value;
|
|
typeSetFromDefault = isSetFromDefault;
|
|
}
|
|
|
|
}
|