Generalized Homogeneous P-Systems