-------------------------------------------------------------------------- Software Design and Development Winter 2001 COM 1205 Prof. Karl Lieberherr --------------------------------------------------------------------------- YOUR NAME: Final Question 1: 10 UNKNOWNs, 2 points each, 20 points Question 2: 39 UNKNOWNs, 3 points each, 117 points Question 3: 11 UNKNOWNs, 3 points each, 33 points Question 4: 6 UNKNOWNs, 6 points each, 36 points Question 5: 12 UNKNOWNs, 3 points each, 36 points Question 6: 2 UNKNOWNs, 10 points each, 20 points 262 total Question 1: ================================================== UNKNOWN1 = W_List UNKNOWN2 = B E X UNKNOWN3 = L UNKNOWN4 = E | N (choice: may switch with 7, may permute alternatives) UNKNOWN5 = NOTHING UNKNOWN6 = X L UNKNOWN7 = Y | Z | W (choice: may switch with 4, may permute alternatives) UNKNOWN8 = NOTHING UNKNOWN9 = NOTHING UNKNOWN10 = W [ Nonempty_W_List] Question 2: ================================================== UNKNOWN1 = ClassGraph UNKNOWN2 = cg UNKNOWN3 = ClassGraph UNKNOWN4 = true UNKNOWN5 = false UNKNOWN6 = cg UNKNOWN7 = ClassGraph UNKNOWN8 = cg UNKNOWN9 = Iterator UNKNOWN10 = iterator UNKNOWN11 = hasNext UNKNOWN12 = next UNKNOWN13 = iterator UNKNOWN14 = hasNext UNKNOWN15 = next UNKNOWN16 = getDefinedNames UNKNOWN17 = asList UNKNOWN18 = from Examples to Collaboration UNKNOWN19 = Iterator UNKNOWN20 = iterator UNKNOWN21 = while UNKNOWN22 = hasNext UNKNOWN23 = Collaboration UNKNOWN24 = Collaboration UNKNOWN25 = next UNKNOWN26 = add UNKNOWN27 = getUndefinedNames UNKNOWN28 = getDefinedNames UNKNOWN29 = asList UNKNOWN30 = from Examples to QualifiedClassName UNKNOWN31 = Iterator UNKNOWN32 = iterator UNKNOWN33 = while UNKNOWN34 = hasNext UNKNOWN35 = QualifiedClassName UNKNOWN36 = QualifiedClassName UNKNOWN37 = contains UNKNOWN38 = add UNKNOWN39 = String cname = el.get_name().get_ident().toString(); String cname = el.get_collname().get_ident().toString(); Question 3: ================================================== UNKNOWN1 = AdapterItem UNKNOWN2 = AdapterItem_NList UNKNOWN3 = Collaboration UNKNOWN4 = Collaboration_List UNKNOWN5 = ImplementMethod UNKNOWN6 = Java_MethodBody UNKNOWN7 = MethodDetail UNKNOWN8 = MethodDetail_List UNKNOWN9 = Nonempty_AdapterItem_NList UNKNOWN10 = Nonempty_Collaboration_List UNKNOWN11 = Nonempty_MethodDetail_List Question 4: ================================================== UNKNOWN1 = depth (or level) UNKNOWN2 = It computes the nesting depth of a collaboration and prints all collaborations with their nesting depth. UNKNOWN3 = GrammarUsedButNotDefined UNKNOWN4 = 1 UNKNOWN5 = UsedButNotDefined UNKNOWN6 = 2 Question 5: ================================================== UNKNOWN1 = from Collaboration bypassing QualifiedClassName to ClassName UNKNOWN2 = classname_clist UNKNOWN3 = ClassName_CList UNKNOWN4 = Collaboration UNKNOWN5 = adapters UNKNOWN6 = AdapterItem_NList UNKNOWN7 = Collaboration UNKNOWN8 = subCollaborations UNKNOWN9 = Collaboration_List UNKNOWN10 = Collaboration_List UNKNOWN11 = first UNKNOWN12 = Nonempty_Collaboration_List Question 6: ================================================== UNKNOWN1 = According to the class dictionary, class maps don't have a name. n1 and n2 should not be there. UNKNOWN2 = replace "class_map n1" by "class_map" replace "class_map n2" by "class_map"