/* Rules for the shellOAVbc expert system shell. These rules determine if a potential candidate for elective office may face difficulties because of domestic employees. */ % % Properties associated with the domEmployee class. % % The domEmployee class has three attributes for which properties are % provided: name, nationality, and visa. (Other attributes have no % properties.) % props(domEmployee,name,'What is *''s name',isString). props(domEmployee,nationality,'What is *''s citizenship?',isString). props(domEmployee,visa,'What type of visa does * have?', isEnum([h for h,j for j,pr for 'Permanent Resident',f for 'Student' ,t for 'Tourist',nv for 'No visa'])). % candAssesment is the root item, it's value is a string describing % how the candidates domestic employment will effect a political % campaign. % start:-wipe,deduce(candAssesment,X),sOut<<'Assesment is '<