|
@ -57,7 +57,7 @@ namespace storm { |
|
|
return std::make_pair<bool, std::shared_ptr<storm::gspn::TimedTransition<GSPN::RateType>> const>(false, nullptr); |
|
|
return std::make_pair<bool, std::shared_ptr<storm::gspn::TimedTransition<GSPN::RateType>> const>(false, nullptr); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
std::pair<bool, std::shared_ptr<storm::gspn::ImmediateTransition<GSPN::WeightType>> const> GSPN::getImmediateTransition(std::string id) const { |
|
|
|
|
|
|
|
|
std::pair<bool, std::shared_ptr<storm::gspn::ImmediateTransition<GSPN::WeightType>> const> GSPN::getImmediateTransition(std::string const& id) const { |
|
|
for (auto& trans : immediateTransitions) { |
|
|
for (auto& trans : immediateTransitions) { |
|
|
if (id.compare(trans->getName()) == 0) { |
|
|
if (id.compare(trans->getName()) == 0) { |
|
|
return std::make_pair<bool, std::shared_ptr<storm::gspn::ImmediateTransition<GSPN::WeightType>> const>(true, static_cast<std::shared_ptr<storm::gspn::ImmediateTransition<GSPN::WeightType>> const>(trans)); |
|
|
return std::make_pair<bool, std::shared_ptr<storm::gspn::ImmediateTransition<GSPN::WeightType>> const>(true, static_cast<std::shared_ptr<storm::gspn::ImmediateTransition<GSPN::WeightType>> const>(trans)); |
|
|