Browse Source

hasRestrictedInitiialStates convenience

Former-commit-id: 4457d767c9 [formerly 7f48d50845]
Former-commit-id: 82416e0649
tempestpy_adaptions
sjunges 8 years ago
parent
commit
72e457cc2d
  1. 4
      src/storage/jani/Automaton.cpp
  2. 5
      src/storage/jani/Automaton.h

4
src/storage/jani/Automaton.cpp

@ -334,6 +334,10 @@ namespace storm {
return edges.size(); return edges.size();
} }
bool Automaton::hasRestrictedInitialStates() const {
return hasInitialStatesRestriction() && !(getInitialStatesExpression().evaluateAsBool());
}
bool Automaton::hasInitialStatesRestriction() const { bool Automaton::hasInitialStatesRestriction() const {
return initialStatesRestriction.isInitialized(); return initialStatesRestriction.isInitialized();
} }

5
src/storage/jani/Automaton.h

@ -258,6 +258,11 @@ namespace storm {
*/ */
uint64_t getNumberOfEdges() const; uint64_t getNumberOfEdges() const;
/*!
* Retrieves whether the initial restriction is set and unequal to true
*/
bool hasRestrictedInitialStates() const;
/*! /*!
* Retrieves whether this automaton has an initial states restriction. * Retrieves whether this automaton has an initial states restriction.
*/ */

Loading…
Cancel
Save