1 / 13

Statechart diagrams

Statechart diagrams. P5 T120B029 2012 pavasario sem. What is state ?. State = set of values that describe an object (its condition/situation) at a specific moment in time State is determined based on the attribute values. states. Where to use ? For what purpose ?.

adelie
Download Presentation

Statechart diagrams

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Statechartdiagrams P5 T120B029 2012 pavasario sem.

  2. Whatisstate? • State = set of values that describe an object (its condition/situation) at a specific moment in time • State is determined based on the attribute values states

  3. Where to use? Forwhatpurpose? • useful to model reactive systemsthat responds to external or internal events. • states are defined as a condition in which an object exists and it changes when some event is triggered. • the purpose is to model life time of an object from creation to termination. • do not have to refer to classes or objects, they can also refer to subsystems etc…

  4. How to draw Statechart Diagram? • Identify important objects to be analyzed. • Identify the objectstates. • Identify the eventsresponsible for state changes. • Model object‘sbehaviour

  5. Event(arguments)[condition]/action State-A State-B Notation • Transition: • Event(arguments) • Guardconditions • Action

  6. Transitions • Are there any logical differences? • (1) • (2)

  7. Problem: Cancel the order • Want to be able to cancel at any time? • Solutions • Transitions from every state to state “cancelled” • Superstate (composite) and single transition

  8. Superstate Event A Planuojama Nauja Event C Event B Composite state: Sequential substates Atvažiavo Vėluoja Compositestateexample

  9. Concurrentstate (and-state) Planuojama Atvažiavo Išvažiavo Iškrautas [OUT] Kraunasi Pakrautas [IN]

  10. Statechart benefits • Ability to analyze the influence of events on the object states. • It is used as book of knowledge during implementation of the system. • Helpful to understand the system’s behaviour during its execution

  11. Event [Guard] / Action

  12. Individualios temos • Android, žaidimas Gyvatėlė • Android, žaidimas Hide and seek • Android, Valiutų kursai • Android, C++ 3D varikliukas • Kinect • eTaksi • Smegenų balionas • Kitos ???

  13. Užduotis kitai paskaitai • Individualios temos pristatymas • 10 min kiekvienai grupei • Ne daugiau 10 skaidrių • Atskleisti užduoties esmę • Pristatyti sistemos funkcionalumą • Pabrėžti pagrindinius funkcinius reikalavimus • Išreikšti kuriamą sistemą skaičiais! • Pateikti darbų pasiskirstymą ir realizavimo planą

More Related