@ -42,17 +42,17 @@ void define_gspn(py::module& m) {
.def("add_place",&GSPNBuilder::addPlace,"Add a place to the GSPN",py::arg("capacity")=1,py::arg("initialTokens")=0,py::arg("name")="")
.def("set_place_layout_info",&GSPNBuilder::setPlaceLayoutInfo,"Set place layout information",py::arg("place_id"),py::arg("layout_info"))
.def("add_immediate_transition",&GSPNBuilder::addImmediateTransition,"Adds an immediate transition to the GSPN","priority"_a=0,"weight"_a=0,"name"_a="")
.def("add_immediate_transition",&GSPNBuilder::addImmediateTransition,"Add an immediate transition to the GSPN","priority"_a=0,"weight"_a=0,"name"_a="")
.def("add_timed_transition",py::overload_cast<uint_fast64_tconst&,doubleconst&,std::stringconst&>(&GSPNBuilder::addTimedTransition),"Adds an timed transition to the GSPN","priority"_a,"rate"_a,"name"_a="")
.def("add_timed_transition",py::overload_cast<uint_fast64_tconst&,doubleconst&,boost::optional<uint64_t>const&,std::stringconst&>(&GSPNBuilder::addTimedTransition),"Adds an timed transition to the GSPN","priority"_a,"rate"_a,"numServers"_a,"name"_a="")
.def("add_timed_transition",py::overload_cast<uint_fast64_tconst&,doubleconst&,std::stringconst&>(&GSPNBuilder::addTimedTransition),"Add a timed transition to the GSPN","priority"_a,"rate"_a,"name"_a="")
.def("add_timed_transition",py::overload_cast<uint_fast64_tconst&,doubleconst&,boost::optional<uint64_t>const&,std::stringconst&>(&GSPNBuilder::addTimedTransition),"Add a timed transition to the GSPN","priority"_a,"rate"_a,"numServers"_a,"name"_a="")
.def("add_input_arc",py::overload_cast<uint_fast64_tconst&,uint_fast64_tconst&,uint_fast64_tconst&>(&GSPNBuilder::addInputArc),"from"_a,"to"_a,"multiplicity"_a=1,"Add a new input arc from a place to an transition")
.def("add_input_arc",py::overload_cast<std::stringconst&,std::stringconst&,uint64_t>(&GSPNBuilder::addInputArc),"from"_a,"to"_a,"multiplicity"_a=1,"Add a new input arc from a place to an transition")
.def("add_inhibition_arc",py::overload_cast<uint_fast64_tconst&,uint_fast64_tconst&,uint_fast64_tconst&>(&GSPNBuilder::addInhibitionArc),"from"_a,"to"_a,"multiplicity"_a=1,"Add an new input arc from a place to an transition")
.def("add_inhibition_arc",py::overload_cast<std::stringconst&,std::stringconst&,uint64_t>(&GSPNBuilder::addInhibitionArc),"from"_a,"to"_a,"multiplicity"_a=1,"Add a new input arc from a place to an transition")
.def("add_output_arc",py::overload_cast<uint_fast64_tconst&,uint_fast64_tconst&,uint_fast64_tconst&>(&GSPNBuilder::addOutputArc),"from"_a,"to"_a,"multiplicity"_a=1,"Add a new output arc from a place to an transition")
.def("get_place",[](GSPNconst&g,uint64_tid)->constPlace&{return*(g.getPlace(id));},"id"_a,"Returns the place with the corresponding id")
.def("get_place",[](GSPNconst&g,std::stringconst&name)->constPlace&{return*(g.getPlace(name));},"name"_a,"Returns the place with the corresponding name")
.def("get_timed_transition",[](GSPNconst&g,std::stringconst&name)->constTimedTransition&{return*(g.getTimedTransition(name));},"name"_a,"Returns the timed transition with the corresponding name")
.def("get_immediate_transition",[](GSPNconst&g,std::stringconst&name)->constImmediateTransition&{return*(g.getImmediateTransition(name));},"name"_a,"Returns the immediate transition with the corresponding name")
.def("get_transition",[](GSPNconst&g,std::stringconst&name)->constTransition&{return*(g.getTransition(name));},"name"_a,"Returns the transition with the corresponding name")
.def("get_partitions",&GSPN::getPartitions,"Get the partitions of this GSPN")
.def("get_places",&GSPN::getPlaces,"Get the places of this GSPN")
@ -91,15 +91,14 @@ void define_gspn(py::module& m) {
.def("get_immediate_transitions",&GSPN::getImmediateTransitions,"Get the immediate transitions of this GSPN")
.def("get_initial_marking",&GSPN::getInitialMarking,"Computes the initial marking of this GSPN")