-------------------------------------------------------------------------- Software Design and Development Fall 1995 COM1205 Karl Lieberherr --------------------------------------------------------------------------- Midterm YOUR NAME: YOUR NAME: YOUR NAME: --------------------------------------------------------------------------- Open book and open notes. PLEASE GIVE YOUR ANSWERS ON THIS FORM Question 1: ================================================== UNKNOWN1 = MachineName UNKNOWN2 = statename UNKNOWN3 = StateName UNKNOWN4 = n UNKNOWN5 = DemIdent UNKNOWN6 = browser_menu UNKNOWN7 = transitions UNKNOWN8 = TransitionTable UNKNOWN9 = transitions UNKNOWN10 = Transition_List UNKNOWN11 = beforedemonnames UNKNOWN12 = DemonName_CommaList UNKNOWN13 = DemonName UNKNOWN14 = n UNKNOWN15 = DemIdent UNKNOWN16 = init_X UNKNOWN17 = DemonName UNKNOWN18 = n UNKNOWN19 = DemIdent UNKNOWN20 = draw_menu UNKNOWN21 = afterdemonnames UNKNOWN22 = DemonName_CommaList UNKNOWN23 = DemonName UNKNOWN24 = n UNKNOWN25 = DemIdent UNKNOWN26 = desensitize_menu UNKNOWN27 = substates UNKNOWN28 = State_List Question 2: ================================================== UNKNOWN1 = browser_menu UNKNOWN2 = get_name_substate UNKNOWN3 = show_tree_st UNKNOWN4 = presenter_substate UNKNOWN5 = fudge_state UNKNOWN6 = editstate UNKNOWN7 = quitstate Question 3: ================================================== UNKNOWN1 = statename UNKNOWN2 = StateName UNKNOWN3 = transitions UNKNOWN4 = TransitionTable UNKNOWN5 = parent UNKNOWN6 = State UNKNOWN7 = defaultsub UNKNOWN8 = State UNKNOWN9 = substates UNKNOWN10 = State_List UNKNOWN11 = [ < nextState > State ] . UNKNOWN12 = State UNKNOWN13 = State_List UNKNOWN14 = State_Dictionary UNKNOWN15 = State_DictionaryEntry UNKNOWN16 = element UNKNOWN17 = State UNKNOWN18 = < transitions > TransitionTable [ < parent > State ] . Question 4: ================================================== UNKNOWN1 = The sentence needs to be changed as follows: In state fudge_state: Take out: < BeforeDemon < AfterDemon In state quit_state: Take out: < AfterDemon The reason is that with the new cd the keywords "BeforeDemon" and "AfterDemon" are only allowed, if demons are present. UNKNOWN2 = The propagation patterns of question 2 need not be changed. The reason is that they are abstract enough so that TransitionTable never appears in them. The propagation graphs of the two pps will look slightly different, however. The changes to the keywords have no effect on the propagation patterns. ==============