Generalized nets and expert systems