15
The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension [email protected]

The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension [email protected]

Embed Size (px)

Citation preview

Page 1: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

The State of Status

Copyright © 1999 Patrick McDermott

UC BerkeleyExtension

[email protected]

Page 2: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Etymology

• State• Status

• Mode

Page 3: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

State vs. Value

• State same as value?• Bank account with $123,456 different

STATE than $123,457?

Page 4: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

State

• Coke Machine• Not for each amount: price changes, so does

state diagram; Yen dif from $ • 2do: Graphix

Page 5: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Course

• Tentative• Under-enrolled• Open• Closed• Cancelled

Page 6: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Order

• Placed• Pending• Filled• Closed

Page 7: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Employee

• Prospect• Applicant• Candidate• Employee• Retiree

Page 8: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

2, not 1

• Paid• Fulfilled

Page 9: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Task

• Created• Assigned• Closed

– no more hours

Page 10: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Assumed Serial State

• Order of an Order• DMV

• See Note Page

Page 11: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Questions

• Can they be separate classes?– Different Enough?

• Can you swim upstream?• Can you Re-Open?

– Re-start– Different then?

Page 12: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Employee

• Prospect• Applicant

Page 13: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Separate Class

PROSPECT

APPLICANT

EMPLOYEE

RETIREE

Page 14: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Generalization

PROSPECT APPLICANT CURRENT RETIREE

EMPLOYEE

Page 15: The State of Status Copyright © 1999 Patrick McDermott UC Berkeley Extension pmcdermott@msn.com

Status Attribute

EMPLOYEE

StatusCode: char

Status CodesP – ProspectA – ApplicantE – EmployeeR – Retiree