Answer
Frame Operator | Meaning |
---|---|
alt | Alternative fragment for mutual exclusion conditional logic expressed in the guards. |
loop | Loop fragment while guard is true. Can also write loop(n) to indicate looping n times. There is discussion that the specification will be enhanced to define a FOR loop, such as loop(i, 1, 10) |
opt | Optional fragment that executes if guard is true. |
par | Parallel fragments that execute in parallel. |
region | Critical region within which only one thread can run. |
public class MainController {
Validator v=new Validator();
public ActionResults SaveUser(objUser){
ActionResults ar = v.isValidUser(objUser);
if(ar.IsSuccessful){ DAL.SaveUser(objUser); } return ar;
}
}
Answer
Image will be uploaded soon.
Answer
Sequence Diagrams
Strengths:
Strengths:
Weaknesses:
Answer
Interaction diagrams shows how objects interact via messages. They are used for dynamic object modeling. There are two common types: