1#ifndef STORM_STORAGE_PRISM_COMMAND_H_
2#define STORM_STORAGE_PRISM_COMMAND_H_
29 Command(uint_fast64_t globalIndex,
bool markovian, uint_fast64_t actionIndex, std::string
const& actionName,
31 uint_fast64_t lineNumber = 0);
96 std::vector<storm::prism::Update>
const&
getUpdates()
const;
103 std::vector<storm::prism::Update>&
getUpdates();
118 Command substitute(std::map<storm::expressions::Variable, storm::expressions::Expression>
const& substitution)
const;
146 uint_fast64_t actionIndex;
153 std::string actionName;
159 std::vector<storm::prism::Update> updates;
162 uint_fast64_t globalIndex;
167 Command copyWithNewUpdates(std::vector<Update>&& newUpdates)
const;
Command(Command &&other)=default
Command & operator=(Command const &other)=default
std::vector< storm::prism::Update > const & getUpdates() const
Retrieves a vector of all updates associated with this command.
bool isLabeled() const
Retrieves whether the command possesses a synchronization label.
friend std::ostream & operator<<(std::ostream &stream, Command const &command)
std::size_t getNumberOfUpdates() const
Retrieves the number of updates associated with this command.
bool containsVariablesOnlyInUpdateProbabilities(std::set< storm::expressions::Variable > const &undefinedConstantVariables) const
Checks whether the given set of variables only appears in the update probabilities of the command.
std::string const & getActionName() const
Retrieves the action name of this command.
storm::prism::Update const & getUpdate(uint_fast64_t index) const
Retrieves a reference to the update with the given index.
Command substitute(std::map< storm::expressions::Variable, storm::expressions::Expression > const &substitution) const
Substitutes all identifiers in the command according to the given map.
void setMarkovian(bool value)
Sets whether this command is a Markovian command, i.e.
storm::expressions::Expression const & getGuardExpression() const
Retrieves a reference to the guard of the command.
Command simplify() const
Simplifies this command.
uint_fast64_t getActionIndex() const
Retrieves the action index of this command.
Command & operator=(Command &&other)=default
Command(Command const &other)=default
bool isMarkovian() const
Retrieves whether the command is a Markovian command, i.e.
Command substituteNonStandardPredicates() const
uint_fast64_t getGlobalIndex() const
Retrieves the global index of the command, that is, a unique index over all modules.