Basics of RSA Rational Software Architect
What is RSA? Comprehensive Modeling and Development environment that leverages the Unified Modeling Language (UML) for designing architecture for C++ and Java 2 Enterprise Edition (J2EE) applications and web services Is built on the Eclipse open-source software framework
Model A model is a complete description of the system from a particular perspective.
What do we learn today? Use case modeling Activity Diagrams Sequence Diagrams
Workbench The term workbench refers to the desktop development environment used in RSA
Creation of a new project
Select UML project
Project name of your choice
Change the file name accordingly
Default diagram can be a use case diagram, activity diagram or just a freeform diagram
Workbench looks like this after you create your first project
Use case diagrams
Use Case Model Basics User centric Actor- represents anything external to the system that will interact with the system Actor represents a role that a user plays Each actor uses the system in different ways Each way the actor uses the system is a use case
Contd… Use Case is initiated by an actor and describes transactions offered by the system Use case represents what the system must provide rather than how Scenario is a session that an actor has with the system Use cases represent a set of potential scenarios
Relationships Include and extendGeneralization
Activity Diagrams
Activity Diagram Basics
Sequence Diagrams
Sequence Diagrams Basics Lifelines represent either roles or object instances that participate in the sequence being modeled The message that is being sent to the receiving object represents an operation/method that the receiving object's class implements
A synchronous message is used when the sender waits until the receiver has finished processing the message, only then does the caller continue A closed and filled arrowhead signifies that the message is sent synchronously With an asynchronous message, the sender does not wait for the receiver to finish processing the message An open arrowhead is used to indicate that a message is sent asynchronously
Alternatives are used to designate a mutually exclusive choice between two or more message sequences
The option combination fragment is used to model a sequence that, given a certain condition, will occur; otherwise, the sequence does not occur. An option is used to model a simple "if then" statement
Examples of Use Case Diagrams
Examples of Sequence Diagrams
Examples of Activity Diagrams