90 likes | 955 Views
Chapter 6: Advanced State Modeling. State Modeling. Nested State Diagrams Nested States Signal Generalization Concurrency A sample state Models Relation of Class and State Models. Nested State Diagrams. Expanding States
E N D
State Modeling • Nested State Diagrams • Nested States • Signal Generalization • Concurrency • A sample state Models • Relation of Class and State Models
Nested State Diagrams • Expanding States One way to organize a model is by having a high level diagram with sub diagrams expanding certain states. For Example Figure 6.2 see in your text book
Nested State Diagrams • Nested States You can structure states more deeply than just replacing a state with a sub machine. As a deeper alternative, you can nest states to show their commonality and share behavior. For Example Figure 6.4 single transition from active to Idle replaces the transitions from each state to Idle.
Nested State Diagrams • Composite State: The composite state name labels the outer contour that entirely encloses the nested states. Thus active is a composite state with regard to nested states Dial Tone, Timeout, Dialing, and so forth. For example Figure 6.5 see in your text book
Signal Generalization • You can organize signals into a generalization hierarchy with inheritance of signal attributes. For example Figure 6.6 see in your text book A signal hierarchy permits different levels of abstraction to be used in a model.
Concurrency • The state model implicitly supports concurrency among objects. In general, objects are autonomous entities that can act and change state independent of one other. • Aggregation Concurrency • Concurrency within an object • Synchronization of Concurrent Activities