@ -6,6 +6,7 @@
# include "storm/models/sparse/Dtmc.h"
# include "storm/models/sparse/Dtmc.h"
# include "storm/models/sparse/Mdp.h"
# include "storm/models/sparse/Mdp.h"
# include "storm/models/sparse/Smg.h"
# include "storm/models/sparse/Smg.h"
# include "storm/models/sparse/StochasticTwoPlayerGame.h"
# include "storm/models/sparse/Pomdp.h"
# include "storm/models/sparse/Pomdp.h"
# include "storm/models/sparse/Ctmc.h"
# include "storm/models/sparse/Ctmc.h"
# include "storm/models/sparse/MarkovAutomaton.h"
# include "storm/models/sparse/MarkovAutomaton.h"
@ -35,6 +36,7 @@ template<typename ValueType> using SparseModel = storm::models::sparse::Model<Va
template < typename ValueType > using SparseDtmc = storm : : models : : sparse : : Dtmc < ValueType > ;
template < typename ValueType > using SparseDtmc = storm : : models : : sparse : : Dtmc < ValueType > ;
template < typename ValueType > using SparseMdp = storm : : models : : sparse : : Mdp < ValueType > ;
template < typename ValueType > using SparseMdp = storm : : models : : sparse : : Mdp < ValueType > ;
template < typename ValueType > using Smg = storm : : models : : sparse : : Smg < ValueType > ;
template < typename ValueType > using Smg = storm : : models : : sparse : : Smg < ValueType > ;
template < typename ValueType > using StochasticTwoPlayerGame = storm : : models : : sparse : : StochasticTwoPlayerGame < ValueType > ;
template < typename ValueType > using SparsePomdp = storm : : models : : sparse : : Pomdp < ValueType > ;
template < typename ValueType > using SparsePomdp = storm : : models : : sparse : : Pomdp < ValueType > ;
template < typename ValueType > using SparseCtmc = storm : : models : : sparse : : Ctmc < ValueType > ;
template < typename ValueType > using SparseCtmc = storm : : models : : sparse : : Ctmc < ValueType > ;
template < typename ValueType > using SparseMarkovAutomaton = storm : : models : : sparse : : MarkovAutomaton < ValueType > ;
template < typename ValueType > using SparseMarkovAutomaton = storm : : models : : sparse : : MarkovAutomaton < ValueType > ;
@ -226,10 +228,20 @@ void define_sparse_model(py::module& m, std::string const& vtSuffix) {
py : : class_ < Smg < ValueType > , std : : shared_ptr < Smg < ValueType > > > smg ( m , ( " Sparse " + vtSuffix + " Smg " ) . c_str ( ) , " SMG in sparse representation " , model ) ;
py : : class_ < Smg < ValueType > , std : : shared_ptr < Smg < ValueType > > > smg ( m , ( " Sparse " + vtSuffix + " Smg " ) . c_str ( ) , " SMG in sparse representation " , model ) ;
smg
smg
. def ( py : : init < Smg < ValueType > > ( ) , py : : arg ( " other_model " ) )
. def ( py : : init < Smg < ValueType > > ( ) , py : : arg ( " other_model " ) )
. def ( py : : init < ModelComponents < ValueType > const & > ( ) , py : : arg ( " components " ) )
. def ( " get_player_of_state " , & Smg < ValueType > : : getPlayerOfState , py : : arg ( " state_index " ) )
. def ( " get_player_index " , & Smg < ValueType > : : getPlayerIndex , py : : arg ( " player_name " ) )
;
;
py : : class_ < StochasticTwoPlayerGame < ValueType > , std : : shared_ptr < StochasticTwoPlayerGame < ValueType > > > stg ( m , ( " Sparse " + vtSuffix + " Stg " ) . c_str ( ) , " STG in sparse representation " , model ) ;
stg
. def ( py : : init < StochasticTwoPlayerGame < ValueType > > ( ) , py : : arg ( " other_model " ) )
. def ( py : : init < ModelComponents < ValueType > const & > ( ) , py : : arg ( " components " ) )
. def_property_readonly ( " player_1_matrix " , & StochasticTwoPlayerGame < ValueType > : : getPlayer1Matrix )
. def_property_readonly ( " player_2_matrix " , & StochasticTwoPlayerGame < ValueType > : : getPlayer2Matrix )
. def_property_readonly ( " has_player_2_choice_labeling " , & StochasticTwoPlayerGame < ValueType > : : hasPlayer2ChoiceLabeling )
. def_property_readonly ( " player_2_choice_labeling " , & StochasticTwoPlayerGame < ValueType > : : getPlayer2ChoiceLabeling )
;
py : : class_ < SparsePomdp < ValueType > , std : : shared_ptr < SparsePomdp < ValueType > > > ( m , ( " Sparse " + vtSuffix + " Pomdp " ) . c_str ( ) , " POMDP in sparse representation " , mdp )
py : : class_ < SparsePomdp < ValueType > , std : : shared_ptr < SparsePomdp < ValueType > > > ( m , ( " Sparse " + vtSuffix + " Pomdp " ) . c_str ( ) , " POMDP in sparse representation " , mdp )
. def ( py : : init < SparsePomdp < ValueType > > ( ) , py : : arg ( " other_model " ) )
. def ( py : : init < SparsePomdp < ValueType > > ( ) , py : : arg ( " other_model " ) )