Epidemic propagation. An automaton model as the continuous SIR model