which cram? college of alameda [email protected] copyright © 1999 patrick mcdermott class...
TRANSCRIPT
![Page 1: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/1.jpg)
Which CRAM?
College of Alameda
[email protected] © 1999 Patrick McDermott
ClassRelationship
Attribute
Method
cf.: Entity-Relationship-Attribute-Trigger
![Page 2: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/2.jpg)
The Meta-Objects
Object C.R.A.M.
ObjectsClassesRelationshipsAttributesMethods
CLASS
CLASS
Attribute1Attribute2Attribute3
Method1()Method2()
Relationship
![Page 3: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/3.jpg)
Which C.R.A.M?• Relationship/Attribute can be a class if Data, a
Method if behavior– Marriage– Color to artist, painter– Eskimo Snow
• Telephone Number– Phone Number at Ma Bell– Japanese phone number: it’s an asset– Area code, exchange, number
• Whose Attribute? License Plate #– Car– Driver
![Page 4: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/4.jpg)
Purpose of Objects
• Entity• Business Object
• Infrastructure– User Interface– Data
• Persistence Database
– Control– Static
• For things that aren’t really objects
![Page 5: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/5.jpg)
Object
An object (business object) is a thing the business needs to know about. Classes are groups (classifications) of objects.
In most discussions, “class”, “object” and “entity” can be used interchangeably.
In addition to business objects, there areinfrastructure objects. During analysis, you should only discuss business (entity) objects.
![Page 6: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/6.jpg)
Attribute
An attribute is a piece of information about an object needed in your business. Often objects, attributes and/or relationships are established or modified by methods. In fact, there should be methods to CRUD all the meta-objects.
CRUD: Create, Read, Update, Delete
![Page 7: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/7.jpg)
Attribute or Class?
Attributes Don’t have Attributes
Attributes are “OF” a Class
![Page 8: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/8.jpg)
Method
A method, operation, or function is an action needed in your business. Often objects, attributes and/or relationships are established or modified by methods. In fact, there should be methods to CRUD all the meta-objects.
CRUD: Create, Read/Retrieve, Update, Delete
![Page 9: Which CRAM? College of Alameda pmcdermott@peralta.edu Copyright © 1999 Patrick McDermott Class Relationship Attribute Method cf.: Entity-Relationship-Attribute-Trigger](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f325503460f94c4ddcf/html5/thumbnails/9.jpg)
Grammatical Analysis
Classes are Nouns Relationships are Verbs Attributes are Adjectives Methods are Phrases
– Including an action and – a Class, Relationship or Attribute
Joel Kermarrec
In Principlethe Ghost is the Verb
of the Form1987