Generalized Nets and Expert Systems