Storm
A Modern Probabilistic Model Checker
|
#include <GSPN.h>
Public Types | |
typedef double | RateType |
typedef double | WeightType |
Public Member Functions | |
GSPN (std::string const &name, std::vector< Place > const &places, std::vector< ImmediateTransition< WeightType > > const &itransitions, std::vector< TimedTransition< RateType > > const &ttransitions, std::vector< TransitionPartition > const &partitions, std::shared_ptr< storm::expressions::ExpressionManager > const &exprManager, std::map< storm::expressions::Variable, storm::expressions::Expression > const &constantsSubstitution=std::map< storm::expressions::Variable, storm::expressions::Expression >()) | |
uint64_t | getNumberOfPlaces () const |
Returns the number of places in this gspn. | |
uint64_t | getNumberOfImmediateTransitions () const |
uint64_t | getNumberOfTimedTransitions () const |
std::vector< TransitionPartition > const & | getPartitions () const |
std::vector< TimedTransition< GSPN::RateType > > const & | getTimedTransitions () const |
Returns the vector of timed transitions in this gspn. | |
std::vector< ImmediateTransition< GSPN::WeightType > > const & | getImmediateTransitions () const |
Returns the vector of immediate transitions in this gspn. | |
std::vector< storm::gspn::Place > const & | getPlaces () const |
Returns the places of this gspn. | |
std::shared_ptr< storm::gspn::Marking > | getInitialMarking (std::map< uint64_t, uint64_t > &numberOfBits, uint64_t const &numberOfTotalBits) const |
storm::gspn::Place const * | getPlace (uint64_t id) const |
Returns the place with the corresponding id. | |
storm::gspn::Place const * | getPlace (std::string const &name) const |
Returns the place with the corresponding name. | |
storm::gspn::TimedTransition< GSPN::RateType > const * | getTimedTransition (std::string const &name) const |
Returns the timed transition with the corresponding name. | |
storm::gspn::ImmediateTransition< GSPN::WeightType > const * | getImmediateTransition (std::string const &name) const |
Returns the immediate transition with the corresponding name. | |
storm::gspn::Transition const * | getTransition (std::string const &name) const |
Returns the transition with the corresponding name. | |
void | writeDotToStream (std::ostream &outStream) const |
Write the gspn in a dot(graphviz) configuration. | |
void | setName (std::string const &name) |
Set the name of the gspn to the given name. | |
std::string const & | getName () const |
Returns the name of the gspn. | |
std::shared_ptr< storm::expressions::ExpressionManager > const & | getExpressionManager () const |
Obtain the expression manager used for expressions over GSPNs. | |
std::map< storm::expressions::Variable, storm::expressions::Expression > const & | getConstantsSubstitution () const |
Gets an assignment of occurring constants of the GSPN to their value. | |
void | setCapacities (std::unordered_map< std::string, uint64_t > const &mapping) |
Set Capacities of places according to name->capacity map. | |
void | setPlaceLayoutInfo (uint64_t placeId, LayoutInfo const &layout) const |
void | setTransitionLayoutInfo (uint64_t transitionId, LayoutInfo const &layout) const |
void | setPlaceLayoutInfo (std::map< uint64_t, LayoutInfo > const &placeLayout) const |
void | setTransitionLayoutInfo (std::map< uint64_t, LayoutInfo > const &transitionLayout) const |
std::map< uint64_t, LayoutInfo > const & | getPlaceLayoutInfos () const |
std::map< uint64_t, LayoutInfo > const & | getTransitionLayoutInfos () const |
bool | isValid () const |
Performe some checks. | |
void | toPnpro (std::ostream &stream) const |
void | toPnml (std::ostream &stream) const |
void | toJson (std::ostream &stream) const |
Export GSPN in Json format. | |
void | writeStatsToStream (std::ostream &stream) const |
Static Public Member Functions | |
static uint64_t | timedTransitionIdToTransitionId (uint64_t) |
static uint64_t | immediateTransitionIdToTransitionId (uint64_t) |
static uint64_t | transitionIdToTimedTransitionId (uint64_t) |
static uint64_t | transitionIdToImmediateTransitionId (uint64_t) |
typedef double storm::gspn::GSPN::RateType |
typedef double storm::gspn::GSPN::WeightType |
storm::gspn::GSPN::GSPN | ( | std::string const & | name, |
std::vector< Place > const & | places, | ||
std::vector< ImmediateTransition< WeightType > > const & | itransitions, | ||
std::vector< TimedTransition< RateType > > const & | ttransitions, | ||
std::vector< TransitionPartition > const & | partitions, | ||
std::shared_ptr< storm::expressions::ExpressionManager > const & | exprManager, | ||
std::map< storm::expressions::Variable, storm::expressions::Expression > const & | constantsSubstitution = std::map<storm::expressions::Variable, storm::expressions::Expression>() |
||
) |
std::map< storm::expressions::Variable, storm::expressions::Expression > const & storm::gspn::GSPN::getConstantsSubstitution | ( | ) | const |
std::shared_ptr< storm::expressions::ExpressionManager > const & storm::gspn::GSPN::getExpressionManager | ( | ) | const |
storm::gspn::ImmediateTransition< GSPN::WeightType > const * storm::gspn::GSPN::getImmediateTransition | ( | std::string const & | name | ) | const |
std::vector< storm::gspn::ImmediateTransition< GSPN::WeightType > > const & storm::gspn::GSPN::getImmediateTransitions | ( | ) | const |
std::shared_ptr< storm::gspn::Marking > storm::gspn::GSPN::getInitialMarking | ( | std::map< uint64_t, uint64_t > & | numberOfBits, |
uint64_t const & | numberOfTotalBits | ||
) | const |
std::string const & storm::gspn::GSPN::getName | ( | ) | const |
uint64_t storm::gspn::GSPN::getNumberOfImmediateTransitions | ( | ) | const |
uint64_t storm::gspn::GSPN::getNumberOfPlaces | ( | ) | const |
uint64_t storm::gspn::GSPN::getNumberOfTimedTransitions | ( | ) | const |
std::vector< TransitionPartition > const & storm::gspn::GSPN::getPartitions | ( | ) | const |
storm::gspn::Place const * storm::gspn::GSPN::getPlace | ( | std::string const & | name | ) | const |
storm::gspn::Place const * storm::gspn::GSPN::getPlace | ( | uint64_t | id | ) | const |
std::map< uint64_t, LayoutInfo > const & storm::gspn::GSPN::getPlaceLayoutInfos | ( | ) | const |
std::vector< storm::gspn::Place > const & storm::gspn::GSPN::getPlaces | ( | ) | const |
storm::gspn::TimedTransition< GSPN::RateType > const * storm::gspn::GSPN::getTimedTransition | ( | std::string const & | name | ) | const |
std::vector< storm::gspn::TimedTransition< GSPN::RateType > > const & storm::gspn::GSPN::getTimedTransitions | ( | ) | const |
storm::gspn::Transition const * storm::gspn::GSPN::getTransition | ( | std::string const & | name | ) | const |
std::map< uint64_t, LayoutInfo > const & storm::gspn::GSPN::getTransitionLayoutInfos | ( | ) | const |
|
static |
bool storm::gspn::GSPN::isValid | ( | ) | const |
void storm::gspn::GSPN::setCapacities | ( | std::unordered_map< std::string, uint64_t > const & | mapping | ) |
void storm::gspn::GSPN::setName | ( | std::string const & | name | ) |
void storm::gspn::GSPN::setPlaceLayoutInfo | ( | std::map< uint64_t, LayoutInfo > const & | placeLayout | ) | const |
void storm::gspn::GSPN::setPlaceLayoutInfo | ( | uint64_t | placeId, |
LayoutInfo const & | layout | ||
) | const |
void storm::gspn::GSPN::setTransitionLayoutInfo | ( | std::map< uint64_t, LayoutInfo > const & | transitionLayout | ) | const |
void storm::gspn::GSPN::setTransitionLayoutInfo | ( | uint64_t | transitionId, |
LayoutInfo const & | layout | ||
) | const |
|
static |
void storm::gspn::GSPN::toJson | ( | std::ostream & | stream | ) | const |
void storm::gspn::GSPN::toPnml | ( | std::ostream & | stream | ) | const |
void storm::gspn::GSPN::toPnpro | ( | std::ostream & | stream | ) | const |
|
static |
|
static |
void storm::gspn::GSPN::writeDotToStream | ( | std::ostream & | outStream | ) | const |
void storm::gspn::GSPN::writeStatsToStream | ( | std::ostream & | stream | ) | const |