On a class of P automata