Wednesday, 18 September 2013

Linux

Important Tools and Downloads
RED FLAG LINUX
  1. Download ISO file (Version 6.0 Desktop SP1)
Printer Not taking print command:
Click here to download the printflush.Zip file,extract the file and update Run Printflush.bat with administrative privileges.
now anytime print job is stuck double click the batch file and here you go.
I used the Disk Cleanup Tool in Windows Vista, and now the hybrid sleep feature and the hibernation feature are unavailable

http://go.microsoft.com/?linkid=9645383
Download and run the above file to resolve the issue.
Microsoft Downloads:
UPS Application Update

  1. USB Power Surge Error 
  2. Windows Vista asking for activation on a pre-installed Desktop
  3. Windows installer cleanup utility
  4. Windows Vista HOTFIX
  5. DirectX 9c for windows XP
  6. “Generic Host process Error” For Windows XP
  7. Windows Defender
  8. Microsoft Universal Audio Architecture drivers (UAA now same can be requested from Microsoft)
  9. Decoder Checkup utility
  10. Microsoft .Net framework 1.1
  11. Microsoft .Net framework 2.0
  12. Microsoft .Net framework 3.5
  13. Microsoft® Windows® Malicious Software Removal Tool (KB890830)
  14. Windows Installer 3.1 Redistributable (v2)
  15. Windows Installer 4.5 Redistributable
  16. Windows XP service pack 3 Standalone installer KB936929
  17. Windows Vista Service Pack 1 (Information and Download)
  18. Windows Vista Service Pack 2 (Requires Vista SP1 given above)
  19. Search for an error message on Support.Microsoft.com
  20. Windows messenger 5.1
  21. Windows 7 Download and Product Key
  22. Microsoft Office Trail Activation key

Anti Virus Utilities:
  1. Enable registry, folder options
  2. Disable Write protection on USB (New) 
  3. Mal Ware removal for vista Update error
  4. Generic Host process error in windows
  5. Virus effect remover
  6. SuperAntiSpywarePro
  7. Trojan Remover Tool
  8. AVAST removal Tool
  9. McAfee Removal Tool
  10. K7 anti virus Removal Tool
  11. AVG remover 32
  12. AVG remover 64
  13. SymRegFix Tools For windows XP SP3 Registry error
  14. Norton removal Tool
  15. Kaspersky antivirus Removal Tool
  16. Norton removal Tool 2009 Products
  17. NO Disk Error in windows XP
  18. Microsoft® Windows® Malicious Software Removal Tool (KB890830)

Haup pauge TV tuner:
  1. Driver CD
  2. MPEG Decoder for region not supported error
  3. Driver cleanup utility
  4. BB+Dongle driver

Install windows 8, Windows 7 and from a Bootable pen drive.

Hi all,  i feel too happy to share the things i Know and i wish this will help someone somewhere.

Today, here is an article to create a bootable windows installation Pen drive. This will allow us to install newer versions of windows OS from this pen drive.

The steps given below are applicable for creating a windows Vista, Windows 7 and windows 8 Bootable USB disk.

Objective: Create a bootable windows(vista , windows 7, windows 8) installation USB disk.
Requirements:

1. A USB 2.0 or 3.0 pen drive 4GB or higher
2. Original windows installation DVD media or iso image.
3. A system with Vista, windows 7 or windows 8 operating system with DVD drive.


In case you do not have any system having vista , 7 or windows 8 installed, still we can complete our task....
to do this, boot from windows vista, windows 7 or windows 8 disk, you can use any of the disks to prepare the pen drive.
after booting you will get the windows setup screen, now Press SHIFT+F10 key combination together and this will bring up command prompt on the screen, now you may follow the instructions below

1.Preparation:
First we will prepare the pen drive, to do this open CMD (command prompt) with Administrative privileges and run the following commands.
note: this is clean all the data from pen drive, be sure to backup it first.
  • Type  Diskpart on command prompt
  • Now type List volume, this will show all the partitions and drivers attached to pc. find the drive letter corresponding to you pen drive(in my case it is was F:)
  • type select volume F
  • now type clean (this will clean pen drive completely, deleting all partitions)
  • now type create partition primary
  • now type format fs=ntfs quick
  • now type active
  •  the step above automatically assigns drive letter to pen drive, but if it doesn't then you the next command.
  • assign letter="f"
  • now type exit
note: Command prompt is still open and let it be, our pen drive is now ready.
2.Adding boot information.

 using the command prompt, go to DVD drive and then Boot folder in windows installation DVD.
in my case E: is the DVD drive letter and prompt looks like this.(instead of E: use your DVD drive letter)
E:\
E:\BOOT>
now type the following command (f: is my pen drive letter)
bootsect.exe /nt60 f:
3.Copy.
Next step is to insert windows installation DVD and copy all the contents from your windows installation DVD to the pen drive. copy windows vista DVD if you wish to install Vista, use windows 7 disk if you wish to install 7 or use windows 8 DVD if you wish to use pen drive to install windows 8.
Yes!! and we are done!!...You can now easily boot from this pen drive and use it to install windows on and pc that support booting from Pen drive. Suitable for net books, laptops etc.
try and see if it works for you..... you may use these steps for Windows Vista, Windows 7 and Windows 8 as well.

Install Windows XP from Pen Drive without third party software


We have seen people looking for a simple solution to install Windows XP from pen drive just like they can now install windows Vista , 7 and windows 8. Well, i know one such solution exactly and i use it personally. but i never shared it though... so here it is , and i hope this will help.

Benefits

  1. Takes less than 5 minutes to install OS.
  2. Image Based installation much similar to Vista, 7 and 8 installation.
  3. Tools used are from Microsoft.(ImageX).

so let's get started. i assume that you know computer and OS installation basics and have read the earlier article for preparing a bootable window Vista,7 or 8 Pen drive.

Let me explain first, given below are the steps that we will use for preparation.

Step1 : Prepare Window Vista, Window 7 or windows 8 Boot able pen drive.
Step2 : Install windows XP on a a test pc.
Step3 : Capture Windows XP image from C: partition of test pc.(using imageX.exe)
Step4 : Once the image is captured, it can be used for installation on other desktops or laptops etc.



Objective: Install windows XP from a bootable (windows) pen drive.

1: Click here and follow instructions to create a bootable windows installation drive.
2: Install a fresh copy of windows XP on a desktop computer using standard procedure. do not install any drivers or software. Shutdown your computer after first restart.
3: We will now need Microsoft ImageX


(Microsoft ImageX tool for windows.(download it from Microsoft site here) ImageX is a very tiny application which comes as part of WAIK (windows automated installation kit). download the latest iso file from the link hereits is a big image file but worth the download because we will use ImageX.exe for several different purposes. )

Time to capture the freshly installed windows XP image from C: partition. to do this follow the steps below. 
  • Copy ImageX to bootable pen drive created during the Step1.
  • Boot from bootable pen drive
  • On the setup screen Press Shift+F10 to open command prompt.
  • Now from command prompt go to pen drive.
  • Now Type command Imagex /capture C: C:\WinXP.wim "XP"
  • The above step will capture windows XP image from c: drive and save it with a file name Winxp.wim
  • the process will take around 10-15 minutes.
  • once done you may normally restart the pc.
  • next step is to copy winxp.wim from c: drive to Pen drive

 and that's it!!, we are done creating a bootable pen drive that can be used to install windows Vista, windows 7 or windows 8 and Windows XP as well.

You might be wondering how to install windows XP? So here are the steps...

Explanation: to install windows XP on a fresh HDD, we will create a new partition and then after format it with NTFS. next we will make that partition active and bootable. Once done, next step would be to apply windows XP image captured earlier to the newly created partition and finally, restart PC normally.


 Objective: Install windows XP from a bootable (windows) pen drive.


1. follow the steps below to create a new partition to install windows XP. (if you already have a partition created on the Hard drive.)
  1. Boot from Pen drive created earlier
  2. on the setup screen press Shift+F10 to bring up Command prompt
  3. Type  Diskpart on command prompt
  4. Now type List disk, this will show all the Physical Hard disk drive and other drivers attached to pc. find the disk corresponding to you HDD (in my case it is was Disk 1)
  5. type select disk 1
  6. now type create partition primary size=102400 ( mention required partition size in MB)
  7. now type format fs=ntfs quick
  8. now type active
  9.  the step above automatically assigns drive letter to pen drive, but if it doesn't then you the next command.
  10. assign letter="C"
  11. now type exit
 2.Installtion
Now using the same command prompt got to the pen drive wherein we have our WinXP.wim and imagex.exe file.
now from the command prompt type the following commands.
imagex /apply WinXP.wim 1 C:\
C: is the drive letter on which we you wish to install OS.

now patiently wait for process to finish up. it would take around a minute or 2. you will be able to see the progress in the command prompt window.
2.Adding boot information to Windows Partition.


using the command prompt, go to Pen drive and then Boot folder. In my case E: is the Pen drive letter and prompt looks like this.(instead of E: use your Pen drive letter)
E:\
E:\BOOT>
now type the following command
bootsect.exe /nt52 C:

the above command will make the partition bootable with NTLDR.

and we are done now...!!
Close all windows and restart pc normally, you will be greeted with windows XP logo....

Now go ahead give it a try...and do not forget to share your experience... And while installing Win XP, if we change the priority of setup process through task manager (Shift+F10 then type taskmgr and press enter) to high then within 15 min Win-XP will install.

Solution -Windows 8 not detecting CD DVD drive


I have been through several forums and disscustion boards stating about an issue with windows 8 out of which the DVD /CD drives no longer get detected. well here is some explanation to it and a way to make it work if it is not working as expected.

http://msdn.microsoft.com/en-us/library/windows/hardware/jj591582.aspx 

Zero Power Optical Disk Drive

Zero Power Optical Disk Drive (Zero Power ODD or ZPODD) is one of many new Windows 8 features introduced for power efficiency. On a system enabled with ZPODD, when Windows 8 detects that there is no media in an optical drive, power to the optical drive is cut off. As soon as the user attempts to use the optical drive, power to the optical drive automatically resumes and the user will be able to use the optical drive immediately, unaware that the power to the device was ever turned off. Everything happens in the background and normal user interaction is not affected. ZPODD applies only to optical drives that use the slimline SATA connector and is typically found on laptops. Some servers and desktops also use a slimline SATA connector for optical drives.
In order for ZPODD to work, the ZPODD feature must be supported by the optical drive, the motherboard, and the BIOS.
In some cases even after inserting a Disk in the drive, the drive icon still doesn't show up. you may follow the steps below to make that work.


1. Run Command Prompt as an  Administrator. Directly type cmd in the new Start Screen(a.k.a Windows 8 Metro UI) and press cltr+shift+enter.

Now copy the following , right click command prompt and select paste and the Enter.
reg.exe add "HKLM\System\CurrentControlSet\Services\atapi\Controller0" /f /v EnumDevice1 /t REG_DWORD /d 0x00000001

2.Reboot the system 
3.Verify if the problem has been resolved.

Wednesday, 4 September 2013

UML Use Case Diagram

Overview:

To model a system the most important aspect is to capture the dynamic behaviour. To clarify a bit in details, dynamic behaviour means the behaviour of the system when it is running /operating.
So only static behaviour is not sufficient to model a system rather dynamic behaviour is more important than static behaviour. In UML there are five diagrams available to model dynamic nature and use case diagram is one of them. Now as we have to discuss that the use case diagram is dynamic in nature there should be some internal or external factors for making the interaction.
These internal and external agents are known as actors. So use case diagrams are consists of actors, use cases and their relationships. The diagram is used to model the system/subsystem of an application. A single use case diagram captures a particular functionality of a system.
So to model the entire system numbers of use case diagrams are used.

Purpose:

The purpose of use case diagram is to capture the dynamic aspect of a system. But this definition is too generic to describe the purpose.
Because other four diagrams (activity, sequence, collaboration and Statechart) are also having the same purpose. So we will look into some specific purpose which will distinguish it from other four diagrams.
Use case diagrams are used to gather the requirements of a system including internal and external influences. These requirements are mostly design requirements. So when a system is analyzed to gather its functionalities use cases are prepared and actors are identified.
Now when the initial task is complete use case diagrams are modelled to present the outside view.
So in brief, the purposes of use case diagrams can be as follows:
  • Used to gather requirements of a system.
  • Used to get an outside view of a system.
  • Identify external and internal factors influencing the system.
  • Show the interacting among the requirements are actors.

How to draw Use Case Diagram?

Use case diagrams are considered for high level requirement analysis of a system. So when the requirements of a system are analyzed the functionalities are captured in use cases.
So we can say that uses cases are nothing but the system functionalities written in an organized manner. Now the second things which are relevant to the use cases are the actors. Actors can be defined as something that interacts with the system.
The actors can be human user, some internal applications or may be some external applications. So in a brief when we are planning to draw an use case diagram we should have the following items identified.
  • Functionalities to be represented as an use case
  • Actors
  • Relationships among the use cases and actors.
Use case diagrams are drawn to capture the functional requirements of a system. So after identifying the above items we have to follow the following guidelines to draw an efficient use case diagram.
  • The name of a use case is very important. So the name should be chosen in such a way so that it can identify the functionalities performed.
  • Give a suitable name for actors.
  • Show relationships and dependencies clearly in the diagram.
  • Do not try to include all types of relationships. Because the main purpose of the diagram is to identify requirements.
  • Use note when ever required to clarify some important points.
The following is a sample use case diagram representing the order management system. So if we look into the diagram then we will find three use cases (Order, SpecialOrder and NormalOrder) and one actor which is customer.
The SpecialOrder and NormalOrder use cases are extended from Order use case. So they have extends relationship. Another important point is to identify the system boundary which is shown in the picture. The actor Customer lies outside the system as it is an external user of the system.
UML Use Case Diagram

Where to Use Case Diagrams?

As we have already discussed there are five diagrams in UML to model dynamic view of a system. Now each and every model has some specific purpose to use. Actually these specific purposes are different angles of a running system.
So to understand the dynamics of a system we need to use different types of diagrams. Use case diagram is one of them and its specific purpose is to gather system requirements and actors.
Use case diagrams specify the events of a system and their flows. But use case diagram never describes how they are implemented. Use case diagram can be imagined as a black box where only the input, output and the function of the black box is known.
These diagrams are used at a very high level of design. Then this high level design is refined again and again to get a complete and practical picture of the system. A well structured use case also describes the pre condition, post condition, exceptions. And these extra elements are used to make test cases when performing the testing.
Although the use cases are not a good candidate for forward and reverse engineering but still they are used in a slight different way to make forward and reverse engineering. And the same is true for reverse engineering. Still use case diagram is used differently to make it a candidate for reverse engineering.
In forward engineering use case diagrams are used to make test cases and in reverse engineering use cases are used to prepare the requirement details from the existing application.
So the following are the places where use case diagrams are used:
  • Requirement analysis and high level design.
  • Model the context of a system.
  • Reverse engineering.
  • Forward engineering.

Reserve Bank of India decreases dollar limit for students going abroad

With rupee's rapid depreciation, coupled with RBI bringing down the amount of dollars one can take out of the country, students may have to trim expenses and redraw their strategy. This article offers quick solutions to tide over the crisis.

Students aiming for higher education in foreign universities are a bit nervous about their future.

A rapidly depreciating rupee was the first blow. The second one was from the Reserve Bank of India (RBI) a few days ago. In its bid to arrest the free-falling rupee, the banking regulator has brought down the amount of dollar one can take out of the country from $2,00,000 to $75,000 in a financial year. "Education loans and remittances related to overseas studies are a part of the $75,000 limit, but if someone wants to remit a higher amount, they can do so with prior permission of the central bank," says the RBI spokesperson.

That statement sure offers a ray of hope for those who have the wherewithal, but for others the only way out is to prune expenses and redraw the strategy to fund education.



"Almost 60-70% of students who go abroad will not find it difficult to adhere to this limit. However, in case of several programmes, particularly the MBA courses, the course fee itself will exceed the $75,000 limit," says Naveen Chopra, founder and chairman of the Delhi-based overseas education consultancy firm The Chopras. That means the RBI move could have an impact on some management programmes immediately.

"The comfort level has already shrunk. Students who have enrolled in high-end universities or have taken up courses with huge course fee, will have a tough time," adds Chopra.

Cutting corners

Most Indian students are known to lead an almost nerdy life in foreign universities. This habit, if inculcated, will sure help the future candidates. "Indian students are usually quite thrifty while studying abroad. In the US, for a post-graduation course, the annual fee is typically in the range of $25,000-40,000, on an average. Living expenses could be around $15,000 a year, depending on the lifestyle," says Swati Salunkhe, managing director with career counselling firm The Growth Centre.

If your total expenses — including course fee and living expenses — in a financial year exceed $75,000, you will have to make some adjustments to your plan. That includes compromising on the university or institution you have always aspired for. "You can look for cheaper educational destinations. For instance, Australia, Germany, Singapore, and Canada are some of the countries that one can consider to pursue studies. The reasons are varied like low tuition fees or low living expenses and even work permits, which make these countries appealing," says Salunkhe.

You should also look for options to secure scholarships and tuition waivers. Similarly, you can also try to get subject credits by shortening the duration of the course. "Students studying abroad can get the benefit of completing the course in lesser duration by taking up the subject credits during the vacation period given by the university. Most international students do not take break during the course of study and complete the required credits faster as it helps them reduce the course duration and also save on the travel costs. This is possible as the universities abroad provide flexibility for students," adds Salunkhe.

Funding options

Obviously, obtaining a scholarship is the best way to fund your studies and overcoming the problems of restrictions on taking dollars out of the country. Another option is to take up part-time jobs. "They do, and need to, look for these jobs, irrespective of any constraint of bringing in dollars from India. Such income will help them fund their regular, day-to-day expenses," says Chopra. Therefore, identifying the right assignment should be your first priority as soon as you are reasonably settled. "International students who are studying full-time courses in universities abroad are allowed to work part-time, generally 20 hours in a week, in most of the countries. These part-time jobs are generally on-campus and off-campus.



Students have to complete the required formalities to work offcampus," says Salunkhe. Off-campus jobs could include odd jobs in malls, restaurants, gas stations and shops. "US universities have more options of teaching assistantship. This is provided to students pursuing their master's courses. They get a stipend amount for the same. Students who are pursuing researchbased courses have the option of getting research assistantships. Working in libraries, university stores, canteens are considered as on-campus part-time opportunities for students," she adds.

Source : ET

Survey :-Job cuts on anvil at India Inc, salary hikes to hit dead-end

Amid continuing economic uncertainties, a lesser number of companies at plan to create new jobs in the coming months, while some employers also expect job cuts, says a survey by job portal Naukri.com.

Just about 54 per cent of India Inc predict fresh job creation in the second half of this year whereas the same sentiment was shared by 68 per cent entities at the start of 2013, while salary hikes too are expected to be on the lower side, said the survey.

Hiring sentiment would be muted for the remaining half of 2013 amid economic uncertainties, it added.

While around 53 per cent recruiters expect replacement hiring in the second half of this year, about "15 per cent of recruiters have anticipated a hiring freeze and layoffs in the coming months".

Layoffs are expected to increase in banking, auto and ITES sectors, the survey said.

The survey covered more than 1,100 employers.

Info Edge India's Chief Financial Officer Ambarish Raghuvanshi said macroeconomic indicators are running weak, the rupee has stumbled to an all time low and inflationary pressures are strong.

"The hiring confidence can't overlook these parameters and hence reflects the slowdown. However, replacement hiring would be considerable in the coming six months," he added.

Naukri.com is part of Info Edge group.

Going by the survey, most sectors -- except for IT and construction -- witnessed a sharp decline in creation of new jobs last month as compared to January.

"About 15 per cent of recruiters have anticipated a hiring freeze and layoffs in the coming months as compared to 10 per cent in January 2013," it said.
Regarding increments for employees this year, the survey found that 39 per cent recruiters expect the increment to be in the range of "10 to 15 per cent".

About 33 per cent respondents said that increments are expected to be less than 10 per cent.

"Lowest increments were given in the auto and pharma sector, wherein a majority of the recruiters said salary hikes in their organisation were in the range of 5-10 per cent in 2013," it said.

On the other hand, 45 per cent respondents said attrition level has been stable over last 12 months.

However, striking an optimistic note, Raghuvanshi said, going forward, improvement in the economy would be factored in gradually by employers.

The Naukri Hiring Outlook Survey is conducted twice a year.

Source : Financial Express.

 Sources:- Infosys planning to cut onsite jobs

In an attempt to ensure cost efficiency in its operations, Infosys -- India's second-largest IT services exporter -- is likely to reduce its onsite operations, reported ET Now. 

According to ET Now sources, Infosys is considering downsizing its onsite, which implies that a lot of people in the support functions are likely to face the possibility of a job cut. 

ET Now understands that the marketing team in the US is also on the radar. "Also, the Infosys management is looking to cut costs in the strategic global sourcing (SGS) division," ET Now reported. 

This is being seen as an attempt to restructure the sales engine in the US. "Infosys feels that the SGS group is overlapping with what the sales function does," ET Now added. 

It is believed that NR Narayana Murthy and his son Rohan Murty have been in the US for the last two weeks to fine tune the strategy to cut costs on onsite. Infosys' onsite cost accounts for 46% of total cost as of March 2013. The management refused to comment on any queries pertaining to 'internal organizational matters.' 

ET had earlier reported that Infosys under Chairman Murthy is centralising decision making. The chairman's office — the new power centre created after the return of retired co-founder Murthy — has to sign off on key decisions related to large technology contracts, such as pricing or the way a deal is structured that might expose Infosys to future risks, at least three senior executives told ET on the condition of anonymity. 

"For all practical purposes, Murthy is the chairman, CEO, COO all rolled into one," said one of the executives. 

Before Murthy's return, chief executive officer SD Shibulal was in the process of decentralizing decision-making, especially those related to negotiating and signing contracts. 

The intention was to empower client-facing sales executives who are aware of moves by competitors and other considerations critical in negotiating and winning large outsourcing contracts. Under that model, a business unit head would be empowered to close large deals. 

For Infosys, which gets the lion's share of its over $7-billion (Rs 42,000 crore) revenues from corporations in the US and Europe, this could mean longer decision cycles when it comes to large contract negotiations

Source : TOI

: Report :- Slowdown hits online hiring activity

Online hiring activity registered a decline of nearly 4% in July over the same month a year ago amid weak economic conditions, according to a research by job portal Monster.com. 

On a month-to-month basis, the index witnessed even a sharper decline as it was down by 6.10% to 123 in July from 131 it registered in June. 

"The decline in annual growth is reflective of the prevailing challenging economic conditions. Keeping in mind the uncertain economic/ political scenario, companies are adopting a cautious approach while hiring which is reflected in the index," Monster.com (India/ Middle-East/South-East Asia) Managing Director Sanjay Modi said. 

A sectoral analysis shows that 12 of the 27 industry sectors monitored by the Monster Employment Index registered expansion in online recruitment activity between July 2012 and July 2013. 

While hiring in telecom/ISP sector improved by 20% followed by BPO/ITeS sector (up 18%), chemicals/ plastic/ rubber, paints, fertiliser/ pesticides (down 13%) showed steepest annual decline. 

Online demand improved in six of 13 occupational groups monitored by the Monster Employment Index between July 2012 and July 2013. 

The most substantial annual gains amongst occupational groups was registered in customer service (up 18 per cent) followed by hospitality and travel (up 10%). 

Among occupation groups, senior management exhibited the steepest annual decline (down 56%).

Online recruitment activity was up on the year in six of 13 locations monitored by the index. 

Kolkata (up 21%) followed by Chandigarh (up 15%) led all cities in annual growth, while, among major metro-areas, Kolkata (up 21%) followed by Hyderabad (up 12%) registered the highest annual growth. 

The Monster Employment Index India is a monthly gauge of online job posting activity based on a real-time review of millions of employer job opportunities culled from a large representative selection of career Web sites and online job listings across India.

Source : TOI

Thursday, 29 August 2013

UML Class Diagram

Overview:

The class diagram is a static diagram. It represents the static view of an application. Class diagram is not only used for visualizing, describing and documenting different aspects of a system but also for constructing executable code of the software application.
The class diagram describes the attributes and operations of a class and also the constraints imposed on the system. The class diagrams are widely used in the modelling of object oriented systems because they are the only UML diagrams which can be mapped directly with object oriented languages.
The class diagram shows a collection of classes, interfaces, associations, collaborations and constraints. It is also known as a structural diagram.

Purpose:

The purpose of the class diagram is to model the static view of an application. The class diagrams are the only diagrams which can be directly mapped with object oriented languages and thus widely used at the time of construction.
The UML diagrams like activity diagram, sequence diagram can only give the sequence flow of the application but class diagram is a bit different. So it is the most popular UML diagram in the coder community.
So the purpose of the class diagram can be summarized as:
  • Analysis and design of the static view of an application.
  • Describe responsibilities of a system.
  • Base for component and deployment diagrams.
  • Forward and reverse engineering.

How to draw Class Diagram?

Class diagrams are the most popular UML diagrams used for construction of software applications. So it is very important to learn the drawing procedure of class diagram.
Class diagrams have lot of properties to consider while drawing but here the diagram will be considered from a top level view.
Class diagram is basically a graphical representation of the static view of the system and represents different aspects of the application. So a collection of class diagrams represent the whole system.
The following points should be remembered while drawing a class diagram:
  • The name of the class diagram should be meaningful to describe the aspect of the system.
  • Each element and their relationships should be identified in advance.
  • Responsibility (attributes and methods) of each class should be clearly identified.
  • For each class minimum number of properties should be specified. Because unnecessary properties will make the diagram complicated.
  • Use notes when ever required to describe some aspect of the diagram. Because at the end of the drawing it should be understandable to the developer/coder.
  • Finally, before making the final version, the diagram should be drawn on plain paper and rework as many times as possible to make it correct.
Now the following diagram is an example of an Order System of an application. So it describes a particular aspect of the entire application.
  • First of all Order and Customer are identified as the two elements of the system and they have a one to many relationship because a customer can have multiple orders.
  • We would keep Order class is an abstract class and it has two concrete classes (inheritance relationship) SpecialOrder and NormalOrder.
  • The two inherited classes have all the properties as the Order class. In addition they have additional functions like dispatch () and receive ().
So the following class diagram has been drawn considering all the points mentioned above:
UML Class Diagram

Where to use Class Diagrams?

Class diagram is a static diagram and it is used to model static view of a system. The static view describes the vocabulary of the system.
Class diagram is also considered as the foundation for component and deployment diagrams. Class diagrams are not only used to visualize the static view of the system but they are also used to construct the executable code for forward and reverse engineering of any system.
Generally UML diagrams are not directly mapped with any object oriented programming languages but the class diagram is an exception.
Class diagram clearly shows the mapping with object oriented languages like Java, C++ etc. So from practical experience class diagram is generally used for construction purpose.
So in a brief, class diagrams are used for:
  • Describing the static view of the system.
  • Showing the collaboration among the elements of the static view.
  • Describing the functionalities performed by the system.
  • Construction of software applications using object oriented languages.

UML Activity Diagram

Overview:

Activity diagram is another important diagram in UML to describe dynamic aspects of the system.
Activity diagram is basically a flow chart to represent the flow form one activity to another activity. The activity can be described as an operation of the system.
So the control flow is drawn from one operation to another. This flow can be sequential, branched or concurrent. Activity diagrams deals with all type of flow control by using different elements like fork, join etc.

Purpose:

The basic purposes of activity diagrams are similar to other four diagrams. It captures the dynamic behaviour of the system. Other four diagrams are used to show the message flow from one object to another but activity diagram is used to show message flow from one activity to another.
Activity is a particular operation of the system. Activity diagrams are not only used for visualizing dynamic nature of a system but they are also used to construct the executable system by using forward and reverse engineering techniques. The only missing thing in activity diagram is the message part.
It does not show any message flow from one activity to another. Activity diagram is some time considered as the flow chart. Although the diagrams looks like a flow chart but it is not. It shows different flow like parallel, branched, concurrent and single.
So the purposes can be described as:
  • Draw the activity flow of a system.
  • Describe the sequence from one activity to another.
  • Describe the parallel, branched and concurrent flow of the system.

How to draw Activity Diagram?

Activity diagrams are mainly used as a flow chart consists of activities performed by the system. But activity diagram are not exactly a flow chart as they have some additional capabilities. These additional capabilities include branching, parallel flow, swimlane etc.
Before drawing an activity diagram we must have a clear understanding about the elements used in activity diagram. The main element of an activity diagram is the activity itself. An activity is a function performed by the system. After identifying the activities we need to understand how they are associated with constraints and conditions.
So before drawing an activity diagram we should identify the following elements:
  • Activities
  • Association
  • Conditions
  • Constraints
Once the above mentioned parameters are identified we need to make a mental layout of the entire flow. This mental layout is then transformed into an activity diagram.
The following is an example of an activity diagram for order management system. In the diagram four activities are identified which are associated with conditions. One important point should be clearly understood that an activity diagram cannot be exactly matched with the code. The activity diagram is made to understand the flow of activities and mainly used by the business users.
The following diagram is drawn with the four main activities:
  • Send order by the customer
  • Receipt of the order
  • Confirm order
  • Dispatch order
After receiving the order request condition checks are performed to check if it is normal or special order. After the type of order is identified dispatch activity is performed and that is marked as the termination of the process.
UML Activity Diagram

Where to use Activity Diagrams?

The basic usage of activity diagram is similar to other four UML diagrams. The specific usage is to model the control flow from one activity to another. This control flow does not include messages.
The activity diagram is suitable for modeling the activity flow of the system. An application can have multiple systems. Activity diagram also captures these systems and describes flow from one system to another. This specific usage is not available in other diagrams. These systems can be database, external queues or any other system.
Now we will look into the practical applications of the activity diagram. From the above discussion it is clear that an activity diagram is drawn from a very high level. So it gives high level view of a system. This high level view is mainly for business users or any other person who is not a technical person.
This diagram is used to model the activities which are nothing but business requirements. So the diagram has more impact on business understanding rather implementation details.
Following are the main usages of activity diagram:
  • Modeling work flow by using activities.
  • Modeling business requirements.
  • High level understanding of the system's functionalities.
  • Investigate business requirements at a later stage.

UML Object Diagram

Overview:

Object diagrams are derived from class diagrams so object diagrams are dependent upon class diagrams.
Object diagrams represent an instance of a class diagram. The basic concepts are similar for class diagrams and object diagrams. Object diagrams also represent the static view of a system but this static view is a snapshot of the system at a particular moment.
Object diagrams are used to render a set of objects and their relationships as an instance.

Purpose:

The purpose of a diagram should be understood clearly to implement it practically. The purposes of object diagrams are similar to class diagrams.
The difference is that a class diagram represents an abstract model consisting of classes and their relationships. But an object diagram represents an instance at a particular moment which is concrete in nature.
It means the object diagram is more close to the actual system behaviour. The purpose is to capture the static view of a system at a particular moment.
So the purpose of the object diagram can be summarized as:
  • Forward and reverse engineering.
  • Object relationships of a system
  • Static view of an interaction.
  • Understand object behaviour and their relationship from practical perspective

How to draw Object Diagram?

We have already discussed that an object diagram is an instance of a class diagram. It implies that an object diagram consists of instances of things used in a class diagram.
So both diagrams are made of same basic elements but in different form. In class diagram elements are in abstract form to represent the blue print and in object diagram the elements are in concrete form to represent the real world object.
To capture a particular system, numbers of class diagrams are limited. But if we consider object diagrams then we can have unlimited number of instances which are unique in nature. So only those instances are considered which are having impact on the system.
From the above discussion it is clear that a single object diagram cannot capture all the necessary instances or rather cannot specify all objects of a system. So the solution is:
  • First, analyze the system and decide which instances are having important data and association.
  • Second, consider only those instances which will cover the functionality.
  • Third, make some optimization as the numbers of instances are unlimited.
Before drawing an object diagrams the following things should be remembered and understood clearly:
  • Object diagrams are consist of objects.
  • The link in object diagram is used to connect objects.
  • Objects and links are the two elements used to construct an object diagram.
Now after this the following things are to be decided before starting the construction of the diagram:
  • The object diagram should have a meaningful name to indicate its purpose.
  • The most important elements are to be identified.
  • The association among objects should be clarified.
  • Values of different elements need to be captured to include in the object diagram.
  • Add proper notes at points where more clarity is required.
The following diagram is an example of an object diagram. It represents the Order management system which we have discussed in Class Diagram. The following diagram is an instance of the system at a particular time of purchase. It has the following objects
  • Customer
  • Order
  • SpecialOrder
  • NormalOrder
Now the customer object (C) is associated with three order objects (O1, O2 and O3). These order objects are associated with special order and normal order objects (S1, S2 and N1). The customer is having the following three orders with different numbers (12, 32 and 40) for the particular time considered.
Now the customer can increase number of orders in future and in that scenario the object diagram will reflect that. If order, special order and normal order objects are observed then we you will find that they are having some values.
For orders the values are 12, 32, and 40 which implies that the objects are having these values for the particular moment (here the particular time when the purchase is made is considered as the moment) when the instance is captured.
The same is for special order and normal order objects which are having number of orders as 20, 30 and 60. If a different time of purchase is considered then these values will change accordingly.
So the following object diagram has been drawn considering all the points mentioned above:
UML Object Diagram

Where to use Object Diagrams?

Object diagrams can be imagined as the snapshot of a running system at a particular moment. Now to clarify it we can take an example of a running train.
Now if you take a snap of the running train then you will find a static picture of it having the following:
  • A particular state which is running
  • A particular number of passengers. which will change if the snap is taken in a different time.
So here we can imagine the snap of the running train is an object having the above values. And this is true for any real life simple or complex system. In a brief, object diagrams are used for:
  • Making the prototype of a system.
  • Reverse engineering.
  • Modeling complex data structures.
  • Understanding the system from practical perspective.