Homo Sapiens are not the only intelligent ones.. IBM Rational Rhapsody seems to be enhancing its ‘thinking’ capabilities with the introduction of version 8.0.5.
Here again intelligence of Rational Rhapsody 8.0.5 can be observed, the ControlFlow automatically gets converted to an ObjectFlow when an ‘Action' is connected to an ‘Object Node’:
IBM Rational Rhapsody family provides a collaborative design, development and test environment for systems engineers and software engineers. It uses Systems Modeling Language (SysML) and Unified Modeling Language (UML) to enable rapid requirements analysis and visual, model-based design.
The UML diagrams are views into the underlying semantic system model; each kind of diagram emphasizes some aspect of the model.
Example - Dynamic aspects is represented by behavior diagram - State chart.
Statecharts define the behavior of objects by specifying how they react to events or operations. The reaction can be to perform a transition between states and possibly to execute some actions. When running in animation mode, IBM Rational Rhapsody highlights the transitions between states.
The discussion covers few modeling challenges with state chart using Rational Rhapsody and how to over come those challenges:
1) Evaluation of condition connector in state chart
A scenario where a variable (count) is decremented before the condition connector and is expected to terminate if value of variable is 9 (count==9).
However, on executing you observe that the condition doesn’t take the change in the variable on the transition. Instead it takes the initial value of the variable for comparison.
The work around here is to have an additional dummy state in between to get the desired output.
2) Multicasting with rapid ports in layered structure
Currently, the multicasts of event via rapid ports (ports that have no provided/required interfaces) are supported only from a direct invocation.
Example - One sender object and two receiver objects
Consider a scenario where the event is first sent from the Class A's object(itsA) and then it reaches the Class B's object(itsB), from where it is delegated to its 2 inner parts(itsB1 and itsB2
No multicasting is available on having multi layered structure.
The Workaround is to add an additional state chart and MULITCAST_GEN() macro in class B.
3) Working of Reaction in State
In a single state for a Reactive class, you would expect to continuously print a statement after elapse time of tm (1000). However, upon execution it prints only once instead of continuous timer.
Using a tm (1000) as a trigger for a reaction in state means that 1 second after you enter the state you'll be triggered. It's not a continuous timer.
To restart the timer you have to exit the state and re-enter it. It needs a design change as below.
4) Combining Junction Connector and Condition Connector in a state chart
You would like to have several events from a state and a condition to determine the other state.
You cannot join several transitions into a condition connector neither you can have a transition from a junction connector to a condition connector.
However, you can model to add a dummy state in between that will further evaluate for condition connector.
AcdntlPoet 2700019V2G Visits (542)
Rational Rhapsody Tables: The Basics of Tables - In this video Technical Specialists Andy Lapping takes you through the use of the basic, yet powerful Rhapsody concept of tables. Table cell data is generated in Rhapsody from the information already in the browser. Andy also covers table layouts, structure and properties and then performs some example scenarios.
More IBM Rational Rhapsody Tables tutorials can be found below... click through the titles to view them!
Rational Rhapsody Tables: Populating Cell Data Using the API - In this session Andy Lapping takes you through using the API to populate table data. This is the 3rd video in a series of using IBM Rational Rhapsody tables, in-depth. Tables can be a powerful way of collecting and arranging project model data for other uses.
Rational Rhapsody Tables: Relation Tables and Profiling - In this video Andy Lapping takes you through more advanced used of Rhapsody tables including leveraging artifacts in Use Case diagrams.
Rational Rhapsody Tables: Context Patterns in Table Views - In this must-see video for Rational Rhapsody users, Rhapsody expert and Technical Specialist Andy Lapping takes you through using the powerful capability of Context Patterns in Rhapsody tables.
AcdntlPoet 2700019V2G Visits (423)
IBM Rational Rhapsody Features You May Have Missed- Another great playlist by IBM Rational User Education which contains a collection of 8 videos created by IBM Rational Technical Specialist Andy Lapping. These videos are short and focus on very useful and profitable Rational Rhapsody features that you may not know about, but can be used to save you time, money, and better extract value from IBM Rational Rhapsody.
AcdntlPoet 2700019V2G Visits (711)
Rational Rhapsody: The Basics of Tables- In this video Technical Specialists Andy Lapping takes you through the use of the basic, yet powerful Rhapsody concept of tables. Table cell data is generated in Rhapsody from the information already in the browser. Andy also covers table layouts, structure and properties and then performs some example scenarios.