Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ImmediateTransition.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace storm {
7namespace gspn {
8template<typename WeightType>
10 public:
16 void setWeight(WeightType const& weight) {
17 this->weight = weight;
18 }
19
25 WeightType getWeight() const {
26 return this->weight;
27 }
28
32 bool noWeightAttached() const {
33 return storm::utility::isZero(weight);
34 }
35
36 private:
37 // the weight of the transition. Must be positive, if zero, then no weight is attached.
38 WeightType weight;
39};
40} // namespace gspn
41} // namespace storm
void setWeight(WeightType const &weight)
Sets the weight of this transition to the given value.
WeightType getWeight() const
Retrieves the weight of this transition.
bool noWeightAttached() const
True iff no weight is attached.
This class represents a transition in a gspn.
Definition Transition.h:14
bool isZero(ValueType const &a)
Definition constants.cpp:41
LabParser.cpp.
Definition cli.cpp:18