State machine 應用簡介(兼談 UML 2)

  • 1,165 views
Uploaded on

以程式員角度,簡介 state machine 的時機,並提及 UML 2 及實作議題。

以程式員角度,簡介 state machine 的時機,並提及 UML 2 及實作議題。

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,165
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • Version 1.0 : 2011-12-14 @ 智慧時尚 RD 內訓, 15 minutes 。
  • @source http://users.ece.utexas.edu/~ambler/ee306/Software&Doc/Section_3_7.pdf
  • @source: 恐龍版 Operating System Concepts .
  • @source: http://soc.cs.nchu.edu.tw/pllai/Digital%20System.html
  • @inspired Robert Cecil Martin, Agile Software Development: Principles, Patterns, and Practices . Prentice Hall, 2002.
  • @inspired Robert Cecil Martin, Agile Software Development: Principles, Patterns, and Practices . Prentice Hall, 2002.
  • @see http://www.boost.org/doc/libs/1_48_0/libs/msm/doc/HTML/ch03s02.html

Transcript

  • 1. 智慧時尚股份有限公司 Fashion Intelligence Co., Ltd State Machine 應用簡介 2011.12.14. 葉秉哲 兼談 UML 2
  • 2. WHY State Machine? .
  • 3. 有些事物,本質上 就有 “ state” 觀念 .
  • 4. Lock .
  • 5. Process
  • 6. 有些領域,早就發展出 以 “ state” 為出發點 的思考 / 實作程序 .
  • 7. 序向邏輯電路
  • 8. 非同步事件/訊號 .
  • 9. 十字旋轉門 . ? ?
  • 10. 讓程式員易於檢查 怪異而未處理過 的狀況。 .
  • 11. 十字旋轉門 , revised .
  • 12. WHY State Machine?
    • 有些事物,本質上就有 “ state” 觀念
    • 有些領域,早就發展出 以 “ state” 為出發點的思考 / 實作程序
    • 非同步事件/訊號
    • 讓程式員易於檢查怪異而未處理過的狀況
    • 好物: Enterprise Architect
      • http://www.sparxsystems.com/products/ea/
    .
  • 13. UML 2 的 State Machine
    • Martin Fowler, UML Distilled , 3 rd edition, Addison-Wesley, 2003.
      • 第 10 章。
      • 適合速成。
    • UML 2 State Machine Diagram
      • http://www.sparxsystems.com/resources/uml2_tutorial/uml2_statediagram.html
    • UML State Machine @ Wikipedia
      • http://en.wikipedia.org/wiki/UML_state_machine
    .
  • 14. 實作
    • GoF 1995: State pattern
    • SMC (State Machine Compiler)
      • http://smc.sourceforge.net
    • QP™ state machine frameworks
      • QP/C, QP/C++, QP-nano
        • http://www.state-machine.com
    • C++ Boost
        • http://stackoverflow.com/questions/4275602/boost-statechart-vs-meta-state-machine
      • Meta State Machine (MSM)
      • Statechart
    .
  • 15. Boost MSM example .