Software Engineer, Your next Programming Instructor.

"Here I share myself."
Showing posts with label UML. Show all posts
Showing posts with label UML. Show all posts

Saturday, 11 July 2020

State diagram in Software Engineering | State Machine Diagram

State Diagram in Software Engineering | State Machine Diagram 
software engineering,softwareengineering,mysoftwarenotes.com,mysoftwarenotes,state machine diagram,state machine tutorial,state machine unity,UML state,uml state diagram,uml state chart diagram,uml state transition diagram,UML Diagram,UML,uml diagrams tutorial,state diagram examples,state chart diagram examples,how to draw state diagram,state diagram in software engineering,state diagram symbols,state machine,state chart diagram,state transition table

State Diagram is one of the UML Diagram which use to show the dynamic behavior of the system.
We use the state diagram only when any object of the system changes its states in the life. This diagram helps us in representing how an object goes through from one state to other and what are the factors which make the object to transit from one state to other, When object move from one state to other if we have options to go in different states so what state an object chose to move forward and where the chosen state take the object.

there is no Rocket science involve in the state diagram, you being an object of the person class have a unique name lets say "John" and you in your whole life make keep transiting through different states up different factors.

The factor of feeling sleepy transit you to the sleeping state, the factor of  being hungry transit you to the eating state, the factor or the environment which you hate transit you to the Angry state.

This UML Diagram only represent your transitions from one state to another in a flow.
Being a human if you start to make your life state diagram I don't think you can predict all the states through which you will pass in future. Because it depends on the environmental factors and lots of other external factors but the GOD knows your state diagram very well isn't it?

same like this when you develop a software, It could be the bundle of classes, and there would be lots of objects of different classes, Now the object of the class do not know the states from which or to which it will transit in the whole life, But the creator of the object in this case that's you being a programmer or Software Engineer knows very well the states from which an object going to pass in different situation so according to your knowledge you make this state diagram.

Now The objects in the software are not like Humans they some times change the states but most often they are assign to a task (specific task) and by remaining in a single state the keep performing those tasks and dies at the end just after completing the assigned task this is the case in most of the objects in software you don't have to draw state diagram for these kind of software just think if the software is not changing the state in the whole life what is the purpose of making state diagram.

If there are some objects who are assigned to some task but change the state on factors then you have to make a state diagram for it. 
I have given the examples of objects changing the states, may be the example of Easypaisa in the video will be beneficial to understand what I have describe in the whole article till now.

I will recommend you to watch the video now it will help you to clear the concepts.


Friday, 28 February 2020

UML - Activity Diagrams , What is activity diagram | Software Engineering

 

Activity Diagram in UML - URDU /Hindi

This is the most commonly in use diagram of software engineering by UML used to represent the flow of activites in a specific manners and making of decission in the flow.
initial stat, activity, fork, merge diamond and final state are the mose common things in the activity diagram of UML.

This is the UML activity diagram tutorial in hindi and udrdu. Watch the video lecture of 20min and learn it. 

Example of activity diagram

softwareengineering,mysoftwarenotes,mysoftwarenotes.com,activity diagram in uml,activity diagram tutorial,activity diagram,UML,uml activity diagram in hindi,how to draw activity diagram in hindi,activity diagram with notes,activity diagram with solved example,UML Activity Diagrams,software design,uml diagram,diagram software,activity diagram symbols,computer science,component diagram,uml tutorial

UML activity diagram symbols

UML activity diagram symbols or say Activity diagram notations are the things which make the difference between and activity diagram in software engineering and simple workflow diagram in business.
UML make a standard set of notations for the every diagram in software dsign, same for the activity diagram.
We have symbols to represent every thing in diagrm explained in very detail the above five video tutorial of the activity diagram.
The diagram shown in the picture above is also explained in the video.

Saturday, 15 February 2020

how to find out class diagram relationships | class diagram in uml


Class diagram relationships

This is the most confusing thing until you don't know how to make the relationships between the classes. 
If you know the best approach to make relation in class diagram UML trust me this the most easy work to do.

The best approach to make relation in Class Diagram is use the binary approach as described in the video.
If you use this approach you focus on a single class every time instead of focusing on the whole diagram making.
One you have binary relations you have a class diagram

Click below to download the slides in PDF format which are presented in the above video


Tuesday, 5 November 2019

CASE Tools in Software Engineering



case tools are most discussed thing is software engineering, this video will tell you what are the case tools in actual what are the categories of case tools and how they provide ease in working. The video is providing the answer to following questions: 1) What are case tools? - Answer at 1:582) CASE stands for? - Answer at 1:26 3) what are the categories of CASE tools - Answer at 2:084) some examples of CASE tools - Answer at 2:55 It is humble request to like our video and subscribe our channel: https://youtube.com/SoftwareEngineering


Usecase Diagram in Software engineering



rief: How to make UML use case diagram? What is actor in use case diagram? what is use case in use case diagram? Concept of include and extend in use case diagram


Monday, 4 November 2019

Sequence Diagram in Software Engineering



📢 This video is explaining the different notations of sequence diagram so by learning the use of those notations you can draw a sequence diagram by yourself. ✅Brief: This is the on-demand video, students were asking me to teach how to make a sequence diagram in software engineering. There are a lot of good videos available on YouTube for this topic but I try to define the things in my own way, the way students like. 🚩 Lots of books are describing this topic in very good manners but sometimes you need a person to tell you how things work so it will solve this problem and video will help you in understanding. 📢Few things about which we talk in the lecture briefly because we have details videos on those topics. Link of those things are given below. 📋This video will clear you concept on the following things: 👇 ✔️ What is sequence Diagram? ✔️What is the use of sequence diagram? ✔️How to make a sequence diagram? ✔️How to use the different notations in sequence diagram. ✔️What is lifeline in sequence diagram? ✔️What is returning message in sequence diagram. I am sure listening to these video lectures will help you a lot in clearing this topic.

Tuesday, 29 October 2019

UML Class Diagram with solved example tutorial


UML Class diagram :
Student often found it difficult to understand and difficult to draw class diagram, but I think if you know the core concepts of class diagram it is not some thing that much difficult. Lets  have a discussion at it.

What is a class? from where it comes?

Anything from the real world which we want to map in software engineering for making a software that can be a class. I think examples are best part to understand tricky things lets have a look at example.

For Example: I am planing to make a software i.e as "Hospital Management System" now the next part is I will collect the requirements for it and think over it what will be the real world objects and things participate in this software. What first come into the mind? 
  • Patient
  • Patient Record
  • Doctor
And lots of many other things I am not going to write each and every thing, now these can be the classes. 

a Patient can be a class same for other two.

What is class diagram?

I think concept is cleared about what is class and from where it comes now it will be easy to understand what is class diagram, that simple collection of classes linked with each other known as class diagram.

What is the link? - Association between the classes

Link formally known as association between the classes, when you will made lots of different classes for a software off-course there will be link between those classes and those links are known as association between the classes.

Types of Associations :

Now there can be many types of associations between the classes.
  • One to One (* to *)
  • One to Many (1 to *)
  • Many to One (* to 1)
  • Many to Many  (* to *)
  • Many to 0..1 (pronounced as : many to 0 or 1)

Graphical representation of class :

I think theoretical concepts are more than clear now lets have a look at practical representation of the class

So this is the patient class divided in to three part, part 1 represent the name of the class part 2 represent the attributes of the class with data types and part 3 represents the operations that a class will perform.

Note: Attributes and operations of the real class can be vary form the one, this is just a simple assumption to make you understand.


Here you can see two classes patient class and patient record class the line between them is showing the link (association) between these classes, where is the type of association is one to one that is why it is written on both side.

lets have an explanation on what is meant by one to one here
One to one means one patient has exactly one record (in this case if we replace it with one to many (1..*) it means that one patient have more than one (record) record.


 Download PPT Slides of the topic