17const std::string GSPNSettings::gspnFileOptionName =
"gspnfile";
18const std::string GSPNSettings::gspnFileOptionShortName =
"gspn";
19const std::string GSPNSettings::capacitiesFileOptionName =
"capacitiesfile";
20const std::string GSPNSettings::capacitiesFileOptionShortName =
"capacities";
21const std::string GSPNSettings::capacityOptionName =
"capacity";
22const std::string GSPNSettings::constantsOptionName =
"constants";
23const std::string GSPNSettings::constantsOptionShortName =
"const";
27 .setShortName(gspnFileOptionShortName)
33 .setShortName(capacitiesFileOptionShortName)
44 .setShortName(constantsOptionShortName)
46 "values",
"A comma separated list of constants and their value, e.g. a=1,b=2,c=3.")
94 STORM_LOG_ERROR(
"Conflicting settings: Capacity file AND capacity was set.");
virtual std::string getValueAsString() const =0
Retrieves the value of this argument as a string.
virtual uint_fast64_t getValueAsUnsignedInteger() const =0
Retrieves the value of this argument as an unsigned integer.
static ArgumentBuilder createUnsignedIntegerArgument(std::string const &name, std::string const &description)
Creates an unsigned integer argument with the given parameters.
static ArgumentBuilder createStringArgument(std::string const &name, std::string const &description)
Creates a string argument with the given parameters.
static std::shared_ptr< ArgumentValidator< uint64_t > > createUnsignedGreaterValidator(uint64_t lowerBound)
static std::shared_ptr< ArgumentValidator< std::string > > createExistingFileValidator()
This class provides the interface to create an option...
ArgumentBase const & getArgumentByName(std::string const &argumentName) const
Returns a reference to the argument with the specified long name.
bool getHasOptionBeenSet() const
Retrieves whether the option has been set.
bool isCapacitySet() const
Retrievew whether a global capacity was set.
static const std::string moduleName
std::string getGspnFilename() const
Retrieves the gspn file name.
bool isCapacitiesFileSet() const
Retrievew whether the capacities file option was set.
void finalize() override
Prepares the modules for further usage, should be called at the end of the initialization,...
bool isConstantsSet() const
Retrieves whether the constants option was set.
std::string getCapacitiesFilename() const
Retrieves the gspn file name.
uint64_t getCapacity() const
Retrieves the global capacity.
GSPNSettings()
Creates a new GSPN setting.
bool isGspnFileSet() const
Retrievew whether the gspn file option was set.
std::string getConstantDefinitionString() const
Retrieves the string that defines the constants of a gspn.
bool check() const override
Checks whether the settings are consistent.
This is the base class of the settings for a particular module.
void addOption(std::shared_ptr< Option > const &option)
Adds and registers the given option.
Option & getOption(std::string const &longName)
Retrieves the option with the given long name.
#define STORM_LOG_ERROR(message)
SettingsType const & getModule()
Get module.