DESCRIPTION: This module tests that the functions which are related to archive or retrieve generate the specified error codes if they are executed in an incorrect conditions. The error is handled by the default system error handling subroutine. Also, this module tests the requirement that no side effects are generated. SEMANTIC REQUIREMENTS:#F 135
SR1. If function <open archive file> is called, and a specified archive file cannot be opened, then error 400 is generated and the function is ignored.
#F 135
SR2. If function <open archive file> is called, and openning this archive file would exceed the maximum number of simultaneously open archive files, then error 401 is generated and the function is ignored.
#F 135
SR3. If function <open archive file> is called, and the specified archive file identifier already is in use, then error 402 is generated and the function is ignored.
#F 135
SR4. If function <open archive file> is called, and the archive file is not a PHIGS archive file, then error 403 is generated and the function is ignored.
#F 136-139 141-144 147-149
SR5. If functions <close archive file> - <archive all structures>, <retrieve structure identifiers> - <retrieve all structures>, <delete structures from archive> - <delete all structures from archive> are called, and the specified archive file is not open, then error 404 is generated and the function is ignored.
#F 137-139 142-144
SR6. If functions <archive structures> - <archive all structures>, <retrieve structures> - <retrieve all structures> are called, and name conflict occurs while conflict resolution flag has value ABANDON, then error 405 is generated and the function is ignored.
#F 137-139
SR7. If functions <archive structures> - <archive all structures> are called, and the archive file is full, then warning error 406 is generated and any structures that were archived were archived in total.
#F 147 148
SR8. If functions <delete structures from archive>, <delete structure networks from archive> are called, and some of the specified structures do not exist on the archive file, then warning error 407 is generated.
#F 142 143
SR9. If functions <retrieve structures>, <retrive structure networks> are called, and some of the specified structures do not exist on the archive file, then warning error 408 is generated and PHIGS will create empty structure in the place.
LOCAL DICTIONARY:
Functions --- 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> 147: pdstar <delete structures from archive> 148: pdsnar <delete structure networks from archive> 149: pdasar <delete all structures from archive> Data Structures --- 2 ... phigs_description_table 2.4 ... maximum_number_of_simultaneously_open_archive_files 4 ... phigs_state_list 4.6 ... set_of_open_archive_files 4.6.1 ... archive_file 4.6.2 ... archive_file_identifier 4.7 ... archival_conflict_resolution_flag 4.8 ... retrieval_conflict_resolution_flag 8 ... phigs_error_state_list 8.1 ... error_state 9 ... archive 9.1 ... archive_file 9.1.1 ... structure_identifier
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.
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.