home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.ai.shells:377 comp.programming:2140 comp.software-eng:3022
- Path: sparky!uunet!ogicse!usenet.coe.montana.edu!caen!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!claird
- From: claird@NeoSoft.com (Cameron Laird)
- Newsgroups: comp.ai.shells,comp.programming,comp.software-eng
- Subject: Commercial exception-handling as rule evaluation [LONG]
- Message-ID: <1992Jul31.145835.27035@NeoSoft.com>
- Date: 31 Jul 92 14:58:35 GMT
- Article-I.D.: NeoSoft.1992Jul31.145835.27035
- Organization: NeoSoft Communications Services -- (713) 684-5900
- Lines: 49
-
- I have a precise situation in mind, but the questions I have about it
- are open-ended.
-
- I program a lot of exception-handling into the commercial applications
- for which I have responsibility. Examples:
-
- a. if a resource manager in the process of initializing
- shared-memory communications detects what appears to
- be an orphaned shared-memory segment, then it writes
- an announcement of that observation to a log file;
- b. if a user specifies a perfume recipe with a negative
- quantity of verbena extract, then the application
- prints a diagnostic to the screen, and halts;
- c. if an operator requests the manifests for the con-
- tents of a rail car that in fact is idle, a diagnostic
- appears, along with a pop-up listing likely identifiers
- for cars that *are* in transit.
-
- This if-then formulation suggests that an expert system--perhaps just a
- small one--should come into play somewhere. My first question, then, is
- I. What do people think of engineering (some? all?) exception-handling
- as an expert system?
-
- Advantages: I just feel good about a structure which emphasizes the
- uniformity of an approach. I can derive all sorts of division-of-labor
- advantages by partitioning exception-handling in this way, and a rule-
- manipulation system seems quite natural. In particular, a uniform
- approach will streamline effective communication with the user; if he
- or she comes to expect that faults will be reported in a more-or-less
- uniform way, then he or she will understand the reports better, and
- trust them more.
-
- Disadvantages: folklore has it that exception-handling is hard to
- automate; for example, even fans of yacc(1) and lex(1) complain that
- error-recovery is next-to-impossible. That's not really the same
- issue, but part of the yacc-lex history is the realization that users
- deserve a variety of different approaches to reporting errors. Another
- disadvantage, of course, is that I'll need to make some changes if I
- aim to engineer this better. This leads to
- II. what's opinions do folks have on available are engines
- ns, with techniques andwhich can be linked in with C++ results
- which are specific, but accessible to alert
- high-school students.
-
- --
-
- Cameron Laird
- claird@Neosoft.com (claird%Neosoft.com@uunet.uu.net) +1 713 267 7966
- claird@litwin.com (claird%litwin.com@uunet.uu.net) +1 713 996 8546
-