Storm
A Modern Probabilistic Model Checker
|
This class represents a transition in a gspn. More...
#include <Transition.h>
Public Member Functions | |
void | setInputArcMultiplicity (storm::gspn::Place const &place, uint64_t multiplicity) |
Set the multiplicity of the input arc originating from the place. | |
bool | removeInputArc (storm::gspn::Place const &place) |
Removes an input arc connected to a given place. | |
bool | existsInputArc (storm::gspn::Place const &place) const |
Checks whether the given place is connected to this transition via an input arc. | |
void | setOutputArcMultiplicity (storm::gspn::Place const &place, uint64_t multiplicity) |
Set the multiplicity of the output arc going to the place. | |
bool | removeOutputArc (storm::gspn::Place const &place) |
Removes an output arc connected to a given place. | |
bool | existsOutputArc (storm::gspn::Place const &place) const |
Checks whether the given place is connected to this transition via an output arc. | |
void | setInhibitionArcMultiplicity (storm::gspn::Place const &place, uint64_t multiplicity) |
Set the multiplicity of the inhibition arc originating from the place. | |
bool | removeInhibitionArc (storm::gspn::Place const &place) |
Removes an inhibition arc connected to a given place. | |
bool | existsInhibitionArc (storm::gspn::Place const &place) const |
Checks whether the given place is connected to this transition via an inhibition arc. | |
bool | isEnabled (storm::gspn::Marking const &marking) const |
Checks if the given marking enables the transition. | |
storm::gspn::Marking | fire (storm::gspn::Marking const &marking) const |
Fire the transition if possible. | |
void | setName (std::string const &name) |
Set the name of the transition. | |
std::string const & | getName () const |
Returns the name of the transition. | |
std::unordered_map< uint64_t, uint64_t > const & | getInputPlaces () const |
std::unordered_map< uint64_t, uint64_t > const & | getOutputPlaces () const |
std::unordered_map< uint64_t, uint64_t > const & | getInhibitionPlaces () const |
uint64_t | getInputArcMultiplicity (storm::gspn::Place const &place) const |
Returns the corresponding multiplicity. | |
uint64_t | getInhibitionArcMultiplicity (storm::gspn::Place const &place) const |
Returns the corresponding multiplicity. | |
uint64_t | getOutputArcMultiplicity (storm::gspn::Place const &place) const |
Returns the corresponding multiplicity. | |
void | setPriority (uint64_t const &priority) |
Sets the priority of this transtion. | |
uint64_t | getPriority () const |
Returns the priority of this transition. | |
void | setID (uint64_t const &id) |
uint64_t | getID () const |
This class represents a transition in a gspn.
Definition at line 14 of file Transition.h.
bool storm::gspn::Transition::existsInhibitionArc | ( | storm::gspn::Place const & | place | ) | const |
Checks whether the given place is connected to this transition via an inhibition arc.
place | The place which is going to be checked. |
Definition at line 55 of file Transition.cpp.
bool storm::gspn::Transition::existsInputArc | ( | storm::gspn::Place const & | place | ) | const |
Checks whether the given place is connected to this transition via an input arc.
place | The place which is going to be checked. |
Definition at line 21 of file Transition.cpp.
bool storm::gspn::Transition::existsOutputArc | ( | storm::gspn::Place const & | place | ) | const |
Checks whether the given place is connected to this transition via an output arc.
place | The place which is going to be checked. |
Definition at line 38 of file Transition.cpp.
storm::gspn::Marking storm::gspn::Transition::fire | ( | storm::gspn::Marking const & | marking | ) | const |
Fire the transition if possible.
marking | The current marking before the transition is fired. |
Definition at line 81 of file Transition.cpp.
|
inline |
Definition at line 171 of file Transition.h.
uint64_t storm::gspn::Transition::getInhibitionArcMultiplicity | ( | storm::gspn::Place const & | place | ) | const |
Returns the corresponding multiplicity.
place | connected to this transition by an inhibition arc |
Definition at line 127 of file Transition.cpp.
std::unordered_map< uint64_t, uint64_t > const & storm::gspn::Transition::getInhibitionPlaces | ( | ) | const |
Definition at line 115 of file Transition.cpp.
uint64_t storm::gspn::Transition::getInputArcMultiplicity | ( | storm::gspn::Place const & | place | ) | const |
Returns the corresponding multiplicity.
place | connected to this transition by an input arc |
Definition at line 119 of file Transition.cpp.
std::unordered_map< uint64_t, uint64_t > const & storm::gspn::Transition::getInputPlaces | ( | ) | const |
Definition at line 107 of file Transition.cpp.
std::string const & storm::gspn::Transition::getName | ( | ) | const |
Returns the name of the transition.
Definition at line 103 of file Transition.cpp.
uint64_t storm::gspn::Transition::getOutputArcMultiplicity | ( | storm::gspn::Place const & | place | ) | const |
Returns the corresponding multiplicity.
place | connected to this transition by an output arc |
Definition at line 135 of file Transition.cpp.
std::unordered_map< uint64_t, uint64_t > const & storm::gspn::Transition::getOutputPlaces | ( | ) | const |
Definition at line 111 of file Transition.cpp.
uint64_t storm::gspn::Transition::getPriority | ( | ) | const |
Returns the priority of this transition.
Definition at line 147 of file Transition.cpp.
bool storm::gspn::Transition::isEnabled | ( | storm::gspn::Marking const & | marking | ) | const |
Checks if the given marking enables the transition.
Definition at line 59 of file Transition.cpp.
bool storm::gspn::Transition::removeInhibitionArc | ( | storm::gspn::Place const & | place | ) |
Removes an inhibition arc connected to a given place.
place | The place from which the inhibition arc is originating. |
Definition at line 46 of file Transition.cpp.
bool storm::gspn::Transition::removeInputArc | ( | storm::gspn::Place const & | place | ) |
Removes an input arc connected to a given place.
place | The place from which the input arc is originating. |
Definition at line 12 of file Transition.cpp.
bool storm::gspn::Transition::removeOutputArc | ( | storm::gspn::Place const & | place | ) |
Removes an output arc connected to a given place.
place | The place from which the output arc is leading to. |
Definition at line 29 of file Transition.cpp.
|
inline |
Definition at line 167 of file Transition.h.
void storm::gspn::Transition::setInhibitionArcMultiplicity | ( | storm::gspn::Place const & | place, |
uint64_t | multiplicity | ||
) |
Set the multiplicity of the inhibition arc originating from the place.
If the arc already exists, the former multiplicity is overwritten. If the arc does not yet exists, it is created.
place | The place connected by an inhibition arc. |
multiplicity | The multiplicity of the specified arc. |
Definition at line 42 of file Transition.cpp.
void storm::gspn::Transition::setInputArcMultiplicity | ( | storm::gspn::Place const & | place, |
uint64_t | multiplicity | ||
) |
Set the multiplicity of the input arc originating from the place.
If the arc already exists, the former multiplicity is overwritten. If the arc does not yet exists, it is created.
place | The place connected by an input arc. |
multiplicity | The multiplicity of the specified arc. |
Definition at line 8 of file Transition.cpp.
void storm::gspn::Transition::setName | ( | std::string const & | name | ) |
Set the name of the transition.
name | New name of the transition. |
Definition at line 99 of file Transition.cpp.
void storm::gspn::Transition::setOutputArcMultiplicity | ( | storm::gspn::Place const & | place, |
uint64_t | multiplicity | ||
) |
Set the multiplicity of the output arc going to the place.
If the arc already exists, the former multiplicity is overwritten. If the arc does not yet exists, it is created.
place | The place connected by an output arc. |
multiplicity | The multiplicity of the specified arc. |
Definition at line 25 of file Transition.cpp.
void storm::gspn::Transition::setPriority | ( | uint64_t const & | priority | ) |
Sets the priority of this transtion.
priority | The new priority. |
Definition at line 143 of file Transition.cpp.