///////////////////////////////////////////////////////////////////////////// // // This is the sample of input to the IC code generator. // // Format: // // Each definition type header must be prefixed by '$'. // All definition lines follow their definition type header without prefixed // by any special character. // A definition types must be ended with '%'. // A comment line must begin with '//'. // A space line is allowed. // // Supported definition types: // // 1. Header $MESSAGE --> message_name/message_id // 2. Header $INCLUDE_FILE --> file_name // 3. Header $ACTION/AUTO_GEN:YES|NO // --> action_name/action_id[/function_name[/file_name]] // 4. Header $IC_ID --> name/id // 5. Header $MUST_FUNC/AUTO_GEN:YES|NO // --> func_group_name[/file_name] // 6. Header $THRESHOLD --> ic_type/fuzzy_number // // Output of IC code generator: // // app.h, actions.c, ic_func2.c, ic_func3.c // ///////////////////////////////////////////////////////////////////////////// // define input and output messages of IC $MESSAGE PREFETCH_LOCATED/0 DIAGNOSIS_LOCATED/1 DIAGNOSIS_EXECUTE/2 DIAGNOSIS_SAVE/3 DIAGNOSIS_DBREAD/4 DIAGNOSIS_REDIAGNOSE/5 DIAGNOSIS_ACCEPT/6 MEDICAL_LOCATED/7 % // add including files into app.h, if any $INCLUDE_FILE % // define actions of IC // // AUTO_GEN:YES|NO // if YES, actions.c will be automatically generated by collecting // specified file_names; otherwise, the file_name // will be ignored and the user has to provide an actions.c by // himself. If AUTO_GEN equals YES but file_name is // not specified, a default template of the corresponding function will // inserted into the actions.c. // // If 'actions.c' exists, the old 'actions.c' will be moved to a backup // file 'actions.b*', for example, actions.b0, actions.b1.... // $ACTION/AUTO_GEN:YES PREFETCH_EXE/0/prefetch_exe/prefetch_exe.c DIAG_LOCATE/1/diag_locate/diag_locate.c DIAG_EXE/2/diag_exe/diag_exe.c DIAG_SAVE/3/diag_save/diag_save.c DIAG_DBREAD/4/diag_dbread/diag_dbread.c DIAG_REDIAGNOSE/5/diag_rediagnose/diag_rediagnose.c DIAG_ACCEPT/6/diag_accept/diag_accept.c MEDICAL_ACT/7/medical_act/medical_act.c % // define IDs of IC // Note: ic_id EXTERNAL has been defined as -1 in ic.h $IC_ID UNKNOWN/0 % $MUST_FUNC/AUTO_GEN:YES FILL_OUTPUT_MSG_GROUP/out_msg.c PREDICATE_GROUP/predicat.c INTERNAL_MM_GROUP/inter_mm.c FILL_OUTPUT_IC_GROUP/out_ic.c USER_DEFINE_FUNC_VAR_GROUP/func_var.c % // define thresholds for fuzzy computation $THRESHOLD DEFAULT/0.6 PREFETCH/0.6 DIAG/0.6 MEDICAL/0.6 % // // define database access // $DB_ACCESS patient_diag/DEFAULT/stondata/*/id = '%d' %