600 likes | 762 Views
Tutorial 2: Using IBM Rational Modeler for Dynamic Modeling. Xuefeng Dai (Glenn) Mar 2th, 2012. Outline. Using IBM RSM to Create Sequence Diagrams Using IBM RSM to Create State Machines Common Mistakes in Dynamic Modeling. Create Sequence Diagrams. Sequence Diagram - example.
E N D
Tutorial 2: Using IBM Rational Modeler for Dynamic Modeling Xuefeng Dai (Glenn) Mar 2th, 2012
Outline • Using IBM RSM to Create Sequence Diagrams • Using IBM RSM to Create State Machines • Common Mistakes in Dynamic Modeling
Create Sequence Diagrams Create New Sequence Diagram Add an Actor Add a Class Object Add from Palette Add Messages Add Combined Fragments Combined Fragment Example
Create Sequence DiagramsAdd an Object C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsAdd from Palette C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsAdd Messages C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsSynchronous Message C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsSynchronous Message C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsSynchronous Message C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsSynchronous Message C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsAsynchronous Message C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsAsynchronous Message C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsAsynchronous Signal Message C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsCreate Message and Destroy Message C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsAdd Combined Fragments C7201 Tutorial 2: Dynamic Modeling
Create Sequence DiagramsCombined Fragments C7201 Tutorial 2: Dynamic Modeling
Use Modeler to Create Sequence DiagramsAdd Covered Lifelines
Use Modeler to Create Sequence DiagramsAdd Covered Lifelines
Use Modeler to Create Sequence DiagramsAdd Interaction Operand
Use Modeler to Create Sequence DiagramsAdd Interaction Operand C7201 Tutorial 2: Dynamic Modeling
Use Modeler to Create Sequence DiagramsChange Position of Interaction Operand C7201 Tutorial 2: Dynamic Modeling
Use Modeler to Create Sequence DiagramsAdding Guard Condition C7201 Tutorial 2: Dynamic Modeling
Use Modeler to Create State MachinesCreate a State Machine • Create a New State Machine • Add States and Transitions • Add an Event • Add an Action • Add a Condition • Model Temporal Constraints
Use Modeler to Create State MachinesCreate a New State Machine
Use Modeler to Create State MachinesAdd States and Transitions
Use Modeler to Create State MachinesAdd Entry/Do/Exit to state C7201 Tutorial 2: Dynamic Modeling
Use Modeler to Create State MachinesToggle display Entry/Do/Exit C7201 Tutorial 2: Dynamic Modeling
Use Modeler to Create State MachinesAdd Event event name event name
Use Modeler to Create State MachinesAdd Action We use effect for action add action
Use Modeler to Create State MachinesAdd Action select action set action name
Use Modeler to Create State MachinesAdd Condition select event set condition
Use Modeler to Create State MachinesGroup States Into Composite State C7201 Tutorial 2: Dynamic Modeling
Use Modeler to Create State MachinesSplit Composite State C7201 Tutorial 2: Dynamic Modeling
Use Modeler to Create State MachinesPreference Setting C7201 Tutorial 2: Dynamic Modeling
Alt Open {0..1 s} Click Click Use Modeler to Create State MachinesModel Temporal Constraints :B Click 1 s Highlight
Use Modeler to Create State MachinesModel Temporal Constraints • However, IBM Rational Modeler 7.5 doesn’t directly support this concept • What should we do? • Suggestion: use “note” to represent the temporal constraints on the diagram.
Model Temporal ConstraintsDuration Constraint • First, select two events (by pressing SHIFT key), and from context menu, select “Add Note”
Model Temporal ConstraintsDuration Constraint • Second, input duration constraint
Model Temporal ConstraintsDuration Constraint • Third, adjust the position of the note and the connectors
Model Temporal ConstraintsTime Constraint • First, select an event
Model Temporal ConstraintsTime Constraint • Second, input time constraint
Model Temporal ConstraintsTime Constraint • Third, adjust the position of the note and the connector