{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture16 - UMLBook Chapters5,6 1 CSE335Dr.CharlesB.Owen...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 1 State and State Diagrams UML Book  Chapters 5, 6 Telephone application available on class website.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 2 What is important here Events An occurrence in time State Abstraction of values in a system Effects Behavior in response to an event Also called  Activities .
Image of page 2
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 3 Event-Driven Programming Event-driven programming Flow of control is  determined by events or  messages Contrast with batch  programming Flow is explicit in the code
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 4 Do you need this? Event-driven programming is a special type of programming and you  are only likely to need this material should you end up working in…
Image of page 4
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 5 Do you need this? Graphical User Interfaces And GUI-based applications Event-driven programming is a special type of programming and you  are only likely to need this material should you end up working in…
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 6 Do you need this? Graphical User Interfaces And GUI-based applications Web-based Development Event-driven programming is a special type of programming and you  are only likely to need this material should you end up working in…
Image of page 6
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 7 Do you need this? Embedded Systems Factory/Process Controls Event-driven programming is a special type of programming and you  are only likely to need this material should you end up working in…
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 8 Anything Else Game development Telecommunication applications Operating systems Business Enterprise Applications Anything that interacts with people Most everything else as well If you intend only to write  batch data processing loops  and command-line  applications, I’m likely wasting  your time this week… You’ve already been doing this.  It’s the way GUI applications are  written.
Image of page 8
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 9 Events An event is an  occurrence in time . It is  considered atomic and instantaneous.   It may have associated data. Left mouse button  pressed Key pressed Elvis has left the building Flight 529 has landed Power turned on Paper is jammed Message has timed  out 10 seconds has  elapsed Battery is below limit Project 2 is due Past tense verbs Onset of condition
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 10 Signal  Event A one-way transmission  of information from one  object to another.
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '10
  • OWEN
  • Dr. Charles B. Owen, Charles B. Owen, B. Owen Object­Oriented, Owen Object­Oriented Programming, Dr. Charles B.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern