Storm
A Modern Probabilistic Model Checker
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EdgeDestination.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
6
8
9namespace storm {
10namespace jani {
11
13 public:
17 EdgeDestination(uint64_t locationIndex, storm::expressions::Expression const& probability, TemplateEdgeDestination const& templateEdgeDestination);
18
22 uint64_t getLocationIndex() const;
23
28
32 void setProbability(storm::expressions::Expression const& probability);
33
37 void substitute(std::map<storm::expressions::Variable, storm::expressions::Expression> const& substitution, bool const substituteTranscendentalNumbers);
38
43 std::map<storm::expressions::Variable, storm::expressions::Expression> getAsVariableToExpressionMap() const;
44
49
53 bool hasAssignment(Assignment const& assignment) const;
54
58 bool hasTransientAssignment() const;
59
63 bool usesAssignmentLevels() const;
64
69
71
72 private:
73 // The index of the destination location.
74 uint64_t locationIndex;
75
76 // The probability to go to the destination.
78
79 // The template edge destination
80 std::reference_wrapper<TemplateEdgeDestination const> templateEdgeDestination;
81};
82
83} // namespace jani
84} // namespace storm
std::map< storm::expressions::Variable, storm::expressions::Expression > getAsVariableToExpressionMap() const
Retrieves the mapping from variables to their assigned expressions that corresponds to the assignment...
bool hasAssignment(Assignment const &assignment) const
Checks whether this destination has the given assignment.
TemplateEdgeDestination const & getTemplateEdgeDestination() const
Retrieves the template destination for this destination.
void updateTemplateEdgeDestination(TemplateEdgeDestination const &newTed)
bool usesAssignmentLevels() const
Retrieves whether the edge uses an assignment level other than zero.
storm::expressions::Expression const & getProbability() const
Retrieves the probability of choosing this destination.
void substitute(std::map< storm::expressions::Variable, storm::expressions::Expression > const &substitution, bool const substituteTranscendentalNumbers)
Substitutes all variables in all expressions according to the given substitution.
bool hasTransientAssignment() const
Retrieves whether this destination has transient assignments.
OrderedAssignments const & getOrderedAssignments() const
Retrieves the assignments to make when choosing this destination.
void setProbability(storm::expressions::Expression const &probability)
Sets a new probability for this edge destination.
uint64_t getLocationIndex() const
Retrieves the id of the destination location.
LabParser.cpp.
Definition cli.cpp:18