DESCRIPTION: This module tests the posting functions' effects on the "list of workstations to which posted" in the structure state list, the "list of posted structures" in the workstation state list and the setting of a structure's display priority. SEMANTIC REQUIREMENTS:#F 132
SR1. <Post structure> adds the workstation identifier to the "list of workstations to which posted" in the specified structure state list if not already in that list.
#F 132
SR2. <Post structure> adds the specified structure to the "list of posted structures" in the specified workstation state list if not already in that list.
#F 132
SR3. <Post structure> assigns a display priority between 0 and 1 when adding an entry for the specified structure in the "list of posted structures" for the specified workstation.
#F 132
SR4. If the specified structure is already posted to the specified workstation, the only effect of <post structure> is to change the display priority to the new specified value for that structure in the "list of posted structures" for that workstation.
#F 133
SR5. <Unpost structure> removes the workstation identifier from the "list of workstations to which posted" in the specified structure state list.
#F 133
SR6. <Unpost structure> removes the entry for the specified structure from the "list of posted structures" in the specified workstation state list.
#F 133
SR7. <Unpost structure> has no effect if the specified structure does not exist or is not currently posted to any workstation.
#F 134
SR8. <Unpost all structures> removes the workstation identifier from the "list of workstations to which posted" of all the structure state lists.
#F 134
SR9. <Unpost all structures> removes all the structures from the "list of posted structures" in the specified workstation state list.
#F 111 113 125
SR10. Immediately after structure creation via <open structure>, <execute structure>, or <empty structure>, its "list of workstations to which posted" is empty, and no "list of posted structures" contains the structure identifier.
#F 3
SR11. Immediately after <open workstation>, its "list of posted structures" is empty, and no "list of workstations to which posted" contains the workstation identifier.
#F 4
SR12. <Close workstation> removes the workstation identifier from the "list of workstations to which posted" of all the structure state lists.
#F 300
SR13. <Inquire set of workstations to which posted> returns the "list of workstations to which posted" of the specified structure state list.
#F 220
SR14. <Inquire posted structures> returns the "list of posted structures" of the specified workstation state list.
#F 220
SR15. Each entry in the "list of posted structures" contains a structure identifier and its display priority for that structure on the specified workstation.
#F 284
SR16. <Inquire number of display priorities supported> returns the number of display priorities for the specific workstation type.
#F 284
SR17. The number of display priorities supported is 0 or >=2.
#F 284
SR18. If the number of display priorities is 0, then a continuous range of display priorities is supported by the specified workstation type.
#F 284
SR19. If the number of display priorities is >=2, then it indicates the number of distinct values for display priorities supported by the specified workstation type.
LOCAL DICTIONARY:
Functions --- 003: popwk <open workstation> 004: pclwk <close workstation> 111: popst <open structure> 113: pexst <execute structure> 125: pemst <empty structure> 132: ppost <post structure> 133: pupost <unpost structure> 134: pupast <unpost all structures> 220: pqpost <inquire posted structures> 284: pqdp <inquire number of display priorities supported> 300: pqwkpo <inquire set of workstations to which posted> Data Structures --- 5 ... workstation_state_list 5.7 ... list_of_posted_structures 5.7.1 ... structure_identifier 5.7.2 ... display_priority 6 ... workstation_description_table 6.20 ... number_of_display_priorities_supported 7 ... structure_state_list 7.2 ... list_of_workstations_to_which_posted 7.2.1 ... workstation_identifier SEMANTIC CROSS-REFERENCES: 02.01.01/SR04 02.01.02.01/SR04 02.01.02.02/SR10 02.01.03.01/SR01 02.01.03.02/SR05 02.01.03.02/SR06 02.01.03.03/SR01 LOCAL SUBROUTINES: The programs in this module use two special-purpose subroutines: 1. SETPST posts a set of structures to a set of workstations according to the contents of a two-dimensional array. 2. CHKPST accepts a list of structure identifiers, a list of workstation identifiers, and an expected posting state, encoded as a two-dimensional array. It compares the actual list of posted structures and list of workstations to which posted against the expected state and reports back any discrepancies.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.