XEROX NCPathUse 2 4 1 NCPathUse 1 4 By: David Newman (Newman.pasa@Xerox.COM) NCPath, NCPathParse INTRODUCTION This package is intended to provide some functions useful to the programmer using the NCPath package. These functions allow the programmer to transform the data returned by NCPath.FSM.PathCollect into something more useful to a particular application. Also, three functions intended for use as Print definitions for the three major datatypes in NCPath are included in this file. FUNCTIONS (NCPath.GetCardPathListsFromPathCollection PathCollection) [Function] This function collects a list of cards traversed by each path in PathCollection. Thus, it returns a list of lists. Each sublist is a list of all the cards traversed in a particular path. (NCPath.GetTerminalsFromPathCollection PathCollection) [Function] This function returns a list of the terminal cards in a collection of paths. It is intended to assist the user in getting the results desired from what NCPath.FSM.PathCollect returns. (NCPath.GetUniqueTerminalsFromPathCollection PathCollection) [Function] This function is very similar to NCPath.GetTerminalsFromPathCollection, but it collects only unique terminal cards, where the other function can collect multiple copies of the same terminal card. (NCPath.ReverseAndSeparatePaths PathCollection) [Function] The results of NCPath.FSM.PathCollect is a list of lists, each sublist being a path in the collection. These paths share cons cells for efficiency, and are stored with the steps in the paths in reverse order. This function accepts the result of NCPath.FSM.PathCollect, and returns a list of paths with their steps in the correct order, and broken apart such that no cons cells are shared between paths. (PathStepPrint Instance Stream) [Function] This function is intended to be a print definition for the NCPathPathStep datatype. (PrintFSM Instance Stream) [Function] This function is intended for use as a print definition for the NCPathFSM datatype. (PrintFSMNode Instance Stream) [Function] This function is to be a print definition function for FSMNodes. (LIST ((PAGE NIL (FOLIOINFO (ARABIC) STARTINGPAGE# 1) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM) FORMATINFO (ARABIC)) (174 36 288 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))) (PAGE NIL NIL (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM)) (282 42 72 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))) (PAGE NIL NIL (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM)) (282 42 72 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))))).È È(È(ŠŠ8(È (ŠŠ8DÈÈ PAGEHEADING RUNNINGHEADMODERN MODERN MODERN MODERN MODERN MODERN MODERNLOGO  HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN   HRULE.GETFNMODERN  HRULE.GETFNMODERN ) ­¸ +É'Å-Ñ  a aN2Ezº