DESCRIPTION: This module tests the facilities for opening and closing archive files. SEMANTIC REQUIREMENTS: *** *** *** Open and close of archive files *** *** ***#F 205
SR1. <Inquire phigs facilities> returns maximum number of simultaneously open archive files.
#F 205
SR2. Maximum number of simultaneously open archive files must be at least 1.
#F 203
SR3. Whenever there are no open archive files, the archive state is ARCL.
#F 1 211
SR4. Immediately after <open phigs>, the set of open archive files is empty.
#F 135 203
SR5. A successful <open archive file> sets the archive state to AROP.
#F 135 211
SR6. A successful <open archive file> adds the specified file to the set of open archive files.
#F 135 137 138 139 141-149
SR7. A successful <open archive file> provides access to the archive file of the specified name through the specified identifier.
#F 136 203
SR8. A successful <close archive file> on the last open archive file sets the archive state to ARCL, otherwise the state is left as AROP.
#F 136 211
SR9. A successful <close archive file> removes the specified file from the set of open archive files.
#F 203
SR10. <Inquire archive state value> returns the current archive state.
#F 211
SR11. <Inquire archive files> returns the set of open archive files.
LOCAL DICTIONARY:
Functions --- 001: popph <open phigs> 135: poparf <open archive file> 136: pclarf <close archive file> 137: parst <archive structures> 138: parsn <archive structure networks> 139: parast <archive all structures> 141: prsid <retrieve structure identifiers> 142: prest <retrieve structures> 143: presn <retrieve structure networks> 144: prast <retrieve all structures> 145: prepan <retrieve paths to ancestors> 146: prepde <retrieve paths to descendants> 147: pdstar <delete structures from archive> 148: pdsnar <delete structure networks from archive> 149: pdasar <delete all structures from archive> 203: pqars <inquire archive state value> 205: pqphf <inquire phigs facilities> 211: pqarf <inquire archive files> Data Structures --- 1 ... operating_state 1.4 ... archive_state 2 ... phigs_description_table 2.4 ... maximum_number_of_simultaneously_open_archive_files 4 ... phigs_state_list 4.6 ... set_of_open_archive_files 9 ... archive 9.1 ... archive_file LOCAL SUBROUTINES: AVARNM returns an available name for a new archive file.
You may inspect either the design or code for this program.