Silmulácia Petriho sietí
Program PetriNet
initially u, v, x, y, e = 1, 1, 0, 0, 0
assign
u, x := u ? 1, x + 1 if u > 0
v, y := v ? 1, y + 1 if v > 0
x, y, e := x ? 1, y ? 1, e + 1 if x > 0 ? y > 0
end{PetriNet}
Previous slide
Next slide
Back to first slide
View graphic version