DESCRIPTION: This module tests the ability of the programmer to to open and close single and multiple workstations. Workstation parameters (e.g., number of accessible workstations, workstation identifier, connnection identifier, and workstation type) are taken taken from the PVT configuration file. SEMANTIC REQUIREMENTS: *** *** *** *** *** Initial values and state *** *** *** *** *** ***#F 1 209
SR1. Immediately after <open phigs>, the 'set of open workstations' is empty.
#F 1 201
SR2. Immediately after <open phigs>, the workstation state value is WSCL.
#F 201
SR3. <Inquire workstation state values> returns the workstation state of PHIGS.
#F 201
SR4. The workstation state value is WSCL if and only if no workstations are open.
#F 201
SR5. The workstation state value is WSOP if and only if at least 1 workstation is open.
*** *** *** *** *** Open workstation *** *** *** *** ***#F 3 209
SR6. <Open workstation> causes the workstation identifier to be added to the 'set of open workstations' in the PHIGS State List Table.
#F 209
SR7. <Inquire set of open workstations> returns the workstation identifiers for all currently opened workstations.
#F 3
SR8. <Open workstation> causes a unique specific workstation type, (different from all other workstation types) to be placed in the Workstation State List table.
*** *** *** *** Simultaneously open workstations *** *** *** ***#F 205
SR9. <Inquire phigs facilities> returns the 'maximum number of simultaneously open workstations'.
#F 205
SR10. The reported maximum number of simultaneously open workstations must be at least 1.
#F 3 205
SR11. Any number of accessible workstations can be open simultaneously, up to the 'maximum number of simultaneously open workstations'.
*** *** *** *** *** Close workstation *** *** *** ***#F 4 209
SR12. <Close workstation> causes the specific workstation identifier to be removed from the 'set of open workstations' in the PHIGS State List Table.
LOCAL DICTIONARY:
Functions --- 001: popph <open phigs> 003: popwk <open workstation> 004: pclwk <close workstation> 201: pqwkst <inquire workstation state value> 205: pqphf <inquire phigs facilities> 209: pqopwk <inquire set of open workstations> Data Structures --- 1 ... operating_state 1.2 ... workstation_state 2 ... phigs_description_table 2.2 ... list_of_available_workstation_types 2.2.1 ... workstation_type 2.3 ... maximum_number_of_simultaneously_open_workstations 4 ... phigs_state_list 4.1 ... set_of_open_workstations 5 ... workstation_state_list 5.1 ... workstation_identifier 5.3 ... workstation_type
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.