cram/erat babel college of alameda [email protected] copyright © 2000 patrick mcdermott cram:...
TRANSCRIPT
![Page 1: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/1.jpg)
CRAM/ERAT Babel
College of [email protected]
Copyright © 2000 Patrick McDermott
CRAM: Class-Relationship-Attribute-MethodERAT: Entity-Relationship-Attribute-Trigger
![Page 2: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/2.jpg)
Ha!
“The various OO methods use different (and often conflicting) terminology for these concepts. This is extremely frustrating but inevitable, given that OO languages are just as inconsiderate. It is in this area that the UML will bring some of its greatest benefits….”—Martin Fowler, UML Distilled, p. 53.
![Page 3: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/3.jpg)
Context or “Camp”• CRC Cards: Class-Responsibility-Collaborator
• ERD: Entity-Relationship Diagrams– SAD: Traditional Systems Analysis & Design
• Relational: Relational Database Theory• Database: A Physical DB Table • Programmer: In the Code • UML: Unified Modeling Language
– OOAD: Object/Oriented Analysis & Design• Etc., etc., etc…: Any & All others
![Page 4: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/4.jpg)
Category• CRC Cards: Class• ERD: Entity (Type) • Relational: Relation• Database: Table • Programmer: Layout, struct, class • UML: Class• Etc., etc., etc…: Type, File, Structure
![Page 5: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/5.jpg)
Thing• CRC Cards: N/A• ERD: Entity• Relational: Tuple• Database: Row • Programmer: Record • UML: Object • Etc., etc., etc…: Occurrence, Instance
![Page 6: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/6.jpg)
Connection• CRC Cards: Collaboration• ERD: Relationship • Relational: Foreign Key• Database: Database Key • Programmer: Pointer, Array, Containment• UML: Association, Aggregation,
Composition• Etc., etc., etc…: Has-a, Set, Pairing,
Hierarchy, Parent/Child, Owner/Members
![Page 7: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/7.jpg)
Fact• CRC Cards: (Attribute)• ERD: Attribute • Relational: Attribute• Database: Column • Programmer: Variable • UML: Property • Etc., etc., etc…: Field, Item, Element
![Page 8: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/8.jpg)
Behavior• CRC Cards: Responsibility• ERD: N/A (it’s in the DFD)
• Relational: N/A• Database: Service, Procedure• Programmer: Function()• UML: Method()• Etc., etc., etc…: Message, Operation,
Algorithm, Trigger, Routine, Subroutine, Process, Macro
![Page 9: CRAM/ERAT Babel College of Alameda pmcdermott@peralta.edu Copyright © 2000 Patrick McDermott CRAM: Class-Relationship-Attribute-Method ERAT: Entity-Relationship-Attribute-Trigger](https://reader036.vdocuments.mx/reader036/viewer/2022083005/56649f265503460f94c3cd00/html5/thumbnails/9.jpg)
Inheritance• CRC Cards: Superclass/Subclass• ERD: Supertype/Subtype• Relational: N/A• Database: 3 Variations• Programmer: Base/Derived• UML: Generalization/Specialization• Etc., etc., etc…: Is-a, Root/Branch/Leaf,
Parent/Child, Extension