Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ImmediateTransition.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
storm-gspn/storage/gspn/Transition.h
"
4
#include "
storm/utility/constants.h
"
5
6
namespace
storm
{
7
namespace
gspn {
8
template
<
typename
WeightType>
9
class
ImmediateTransition
:
public
storm::gspn::Transition
{
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
Transition.h
storm::gspn::ImmediateTransition
Definition
ImmediateTransition.h:9
storm::gspn::ImmediateTransition::setWeight
void setWeight(WeightType const &weight)
Sets the weight of this transition to the given value.
Definition
ImmediateTransition.h:16
storm::gspn::ImmediateTransition::getWeight
WeightType getWeight() const
Retrieves the weight of this transition.
Definition
ImmediateTransition.h:25
storm::gspn::ImmediateTransition::noWeightAttached
bool noWeightAttached() const
True iff no weight is attached.
Definition
ImmediateTransition.h:32
storm::gspn::Transition
This class represents a transition in a gspn.
Definition
Transition.h:14
constants.h
storm::utility::isZero
bool isZero(ValueType const &a)
Definition
constants.cpp:41
storm
LabParser.cpp.
Definition
cli.cpp:18
src
storm-gspn
storage
gspn
ImmediateTransition.h
Generated by
1.9.8