A class of generalized Petri nets and its state equation. (August 2017)