Title: A study of deterministic and stochastic nets with emphasis on switching nets and self-repairing automata