UML
Explain the different elements of a Use Case ?
Dec 7th
Package: – It logically groups element of a UML model. Use Case :- It represents a set of events.
Actor : – Role played by an outside object.
Interface :- It specifies the externally operations of a class, component, package, or other element without specifying internal structure.
Communication: – How an actor Dependency shows relationship between two elements.
Extends: – Indicates that the elements come in parent child relationship where one element inherits other elements behavior.
Uses: – Here one element uses the other elements behavior. The main difference between Extends and Uses is a “Is a” and “Has a” relationship. “Is a” relationship defines More >
Describe different elements in Static Chart diagrams ?
Dec 7th
Package: – It logically groups element of a UML model.
Class: – They describe set of objects with similar structure, behavior, and relationships. Data Type :- A data type is an instance of the DataType metaclass defined in the UML metamodel. A data type declares a type of class attribute. This type is available as a string, you can include it when you define attributes for other elements in a model.
Interface :- It specifies the externally operations of a class, component, package, or other element without specifying internal structure.
Generalization: – It is a relationship between a specific element and a general More >
What are the element in State Chart diagrams ?
Dec 7th
State: – It’s a condition when following events occur:-
- Object satisfies a condition.
- Or performs a action.
- Or waits for a event to happen
Composite State :- It has one or more sub states.
Initial State: – It represents a state before any event occurs.
Final State: – Represents completion of an activity.
Transition :- Shows the change of one state to other.
Transition Fork: – Denotes beginning of parallel path activities. Transition Join: – Denotes merging of parallel path activities. Decision: – Indicates condition to move to different states.
Shallow History: – Represents the state last visited. When a transition to the indicator fires, an object resumes the More >
Describe the various components in sequence diagrams?
Dec 7th
Object lifeline: – It represents the lifetime of an object creation and its destruction. If the object is created or destroyed during the time period the diagram represents, then the lifeline stops or starts at the appropriate point. An object’s destruction is marked with a large X.
Activation: – It’s time period during which actor is performing a action.
Lifeline :- This says that there exists some condition on the object lifetime.
Message: – It shows communication between objects that conveys information and results in an action.
Message (call):- It’s same like message but also conveys some information and results in action.
All messages have More >
Explain all parts of a deployment diagram?
Dec 7th
Package: – It logically groups element of a UML model.
Node: – A physical system which represents a processing resource, example PC or a host machine.
Component: – It’s the actual implementation or physical module of a UML system. Node instance: – It’s a runtime physical instance of a processing resource.
Component Instance: – It represents an implementation unit that has identity at run time and can contain objects. A component could be contained within a node instance.
InterFace :- It specifies the external operations of a class, component, package, or other element without specifying internal structure.
Object: – Instance of a class.
Composition shape: – More >
Explain Component diagrams ?
Dec 7th
Package: – It logically make group of element of a UML model.
Component: – It’s the actual implementation or physical module of a UML system.
Node: – A physical system which represents a processing resource, example PC or a host machine.
InterFace :- It specifies the externally operations of a class, component, package, or other element without specifying internal structure.
Dependency :- Shows relationship between two elements.
2-Element Constraint: – It shows a constraint on two classes or associations. OR constraint: – It shows an OR constraint on two classes or associations.
Explain Different elements of a collaboration diagram ?
Dec 7th
Classifier Role :- It classifies a role.
Association Role :- It shows the relation between two classifier roles.
Multi-Object :- It used to show operation related to entire set of objects rather than on a single object.
Constraint :- Conditions which must be maintained as true in order that system is valid.
2-Element Constraint: – It shows a constraint on two classes or associations. OR constraint: – It shows an OR constraint on two classes or associations.
What is the sequence of UML diagrams in project?
Dec 7th
First let me say some fact about this question, you can not implement all the nine diagrams given by UML in one project; you can but can be very rare scenario. The way UML is implemented in project varies from project to project and company to company.
Second very important point to remember is normally all diagrams are not implemented in project, but some basic diagrams are important to have in order that project is readable. When we talk about projects every project have phases example (Requirements phase, design phase, coding phase etc ). As every phase of the software cycle More >
What are advantages of using UML?
Dec 7th
As the name suggest UNIFIED MODELING LANGUAGE. Modelling has been around for years, not only in software field but also in other trades like civil, mechanical etc. Example in civil engineering drawing the main architecture built of diagram is a model by itself. Modelling makes complex and huge system to break up in to simple and discrete pieces that can be individually understood. Example simple flowchart drawing is modeling.
There are two main advantages of modeling:-
- Readability: – Representing your whole architecture in flowchart, class diagrams,ER diagrams etc makes your project more readable. Especially when programmer’s change jobs handover becomes easier. More More >
How many types of diagrams are there in UML ?
Dec 7th
There are nine types of diagrams in UML :-
Use case diagram:
They describe “WHAT” of a system rather than “HOW” the system does it.They are used to identify the primary elements and processes that form the system. The primary elements are termed as “actors” and the processes are called “use cases”. Use Case diagrams shows “actors” and there “roles”.
Class diagram:
From the use case diagram we can now go to detail design of system, for which the primary step is class diagram. The best way to identify classes is to consider all “NOUNS” in use cases as classes, “VERBS” as methods of More >
