









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










H.L.H.S. Warnars*
Department of Computing and Mathematics, Manchester Metropolitan University, John Dalton Building, Manchester, M15 6BH, United Kingdom (Received 29 November 2008; final version received 14 July 2009)
Unified modelling language (UML) 2.0 introduced in 2002 has been developing and influencing object-oriented software engineering and has become a standard and reference for information system analysis and design modelling. There are many concepts and theories to model the information system or software application with UML 2.0, which can make ambiguities and inconsistencies for a novice to learn to how to model the system with UML especially with UML 2.0. This article will discuss how to model the simple software application by using some of the diagrams of UML 2.0 and not by using the whole diagrams as suggested by agile methodology. Agile methodology is considered as convenient for novices because it can deliver the information technology environment to the end-user quickly and adaptively with minimal documentation. It also has the ability to deliver best performance software application according to the customer’s needs. Agile methodology will make simple model with simple documentation, simple team and simple tools. Keywords: unified modelling language; UML 2.0; object oriented; agile methodology; software engineering
The unified modelling language (UML) as analysis and design tool for object-oriented paradigm was founded by the trio Grady Booch, James Rumbaugh and Ivar Jacobson. Grady Booch with his object- oriented design concept, James Rumbaugh with his object modelling technique and Ivar Jacobson with his object-oriented software engineering have strength- ened the UML’s ability as a powerful tool for object- oriented analysis and design. Rumbaugh in October 1995 together with Booch yielded the unified method 0.8. In June 1996, Jacobson joined them and yielded UML 0.9. Finally, UML 2.0 was introduced in 2002 with 13 diagrams (Booch 1999, Larman 2005). Nowadays, software programming uses structured paradigm rather than object-oriented paradigm, and hence the world of information system development also transforms from structured paradigm to object- oriented paradigm. UML has been known as a model- ling language for object-oriented paradigm and has been used as an official standard for data modelling, business modelling and real-time development. Those who want to model the system with current object- oriented paradigm must consider UML as an approved modelling language. As a modelling language, UML consists of notation and set of rules like syntax,
semantics and pragmatics, which must be understand- able for those who want to learn this modelling language (Eriksson 2004). UML is not a programming language but a modelling language which can be used to model the information system with some drawing design by the diagram’s rule and where the diagram will be used as a communication tool within a team. To draw or model the information system as a communication tool within a team or with the custo- mer, the model will need the methodology or method that can be used as an explicit way to think and act (Eriksson 2004). For some writers, methodology is different from method (Bennett et al. 2002). A methodology or software engineering method consists of process, standard vocabulary, set of rules and guidelines which tell what to do, how to do, when to do and why it is done (Eriksson 2004, Sommerville 2004). Agile methodology as an evolutionary development will more effectively meet the needs of the customer – quickly, adaptively and focus on the software itself. In the beginning, agile methodology was suitable for small- or medium-sized business and personal computer products (Sommerville 2004), but soon this has been implemented in large-sized business as well (Holmstrom et al. 2006, Ambler 2008f).
*Email: [email protected]
kothandamk 7/9/09 20:58 2008 – Style 4 (USA4) TBIT_A_418796 (XML) RefSty-(V Harvard)
Behaviour & Information Technology Vol. 00, No. 0, Month 2009, 1–
ISSN 0144-929X print/ISSN 1362-3001 online Ó 2009 Taylor & Francis DOI: 10.1080/ http://www.informaworld.com
Documentation and team effectiveness will help in building the best performance software application as per the customer’s requirement. Agile methodo- logy makes simple models using simple tools (Ambler 2002).
There are a lot of sources like the internet, books, papers or journals which can be used as references to design the object-oriented information system with UML, especially with UML 2.0. Each source can use different UML versions and there is even some overlap in the use of UML versions in UML diagrams. In one diagram, they may use UML version 1.x and in the other diagram they may use UML version 2.0. Moreover, for some samples or methodologies like agile modelling has combined between UML as an object-oriented modelling with data flow diagram (DFD) as structured modelling. Furthermore, UML diagrams have been criticised for deficiencies such as semantic inconsistencies, inadequacy of notation and ambiguities of diagrams and construction (Ambler 2002, Siau and Loo 2006). There are ambiguities in diagrams like sequence diagram, communication diagram, activity diagram and state machine diagram. We can design our interaction diagram with sequence diagram or com- munication diagram. In the same way if we want to design behaviour diagram we can design with activity diagram or state machine diagram. Figure 1 shows some UML complaints. For agile modelling UML which encouraged to use for applying UML (Larman 2005) is not sufficient for the development of business software and more complex (Ambler 2002, Ambler 2008b). The question ‘What’s missing from the UML?’ seems to judge
whether the UML is strange, too little in it and too much in it (Ambler 2002). If something is wrong with it, why should there be a statement like that? Is there any competition with Rational Rose, or with the UML’s founder? Another issue is that there is a lack of computer assisted software engineering (CASE) tools which can only do the static models. Reverse engineering can generate class diagram from source code but it cannot generate interaction diagram like sequence diagram. On the other hand, in forward engineering, the code programming can generate from class diagram but not the method body code from interaction diagram like sequence diagram (Larman 2005). These questions become more interesting to dig in more.
(1) There is a lack of UML 2.0 resources specifi- cally for Indonesian books. (2) There are not many example cases to analyse and design with UML specifically with fully UML 2.0 and also for Indonesian books. If be present then will have different ones and need extra time to conquer the differentiation. (3) Learning will be easier if we have understood object-oriented concepts like class, object, attribute or property or data, method or function or behaviour, inheritance, multiple inheritance, encapsulation, polymorphism, etc. (4) Learning will be easier if we have understood and implemented some object-oriented pro- gramming (Siau and Loo 2006) and conversant to using object-oriented concepts like class, object and inheritance by programming im- plementation. It is not only important to just know how to use object-oriented program but one should also know how to implement the object-oriented concept in programming. One should also know how to implement class, object, inheritance, encapsulation, polymorph- ism in programming, as shown in Figure 2. I think it is very important that one must know how to use object-oriented programming with a truly object-oriented concept. Also, for each object-oriented programming there are some differentiations for using it, e.g. with Cþþ, Java, Visual Basic, etc. For example, in Java we Figure 1. Complaints about UML. can do multiple inheritance but in Cþþ we
2 H.L.H.S. Warnars
There will be a red line between design and imple- mentation (Booch 1999). This consistency will be run as the need of user requirement and every step will influence other steps because changing one step will change other steps as well; changing the onward step will influence the backward step and vice versa. Figure 3 shows how consistency can be done as relation between design and implementation. The same happens in other fields of science, for example accountancy. We can trace net income or net loss in income, with the help of the transaction entries made in ledger or journal. Figure 4 shows the accounting cycle as consistency from each of the steps in the accounting cycle. The same happens in architecture as well; the job of the builder is just to build something which has been drawn on blueprint. If the builder could not accom- plish the job according to the blueprint, it will mean that the builder does not have the ability to read the design or blueprint. Figure 5 shows an example of a house blueprint. Building the information can be done with top- down approach or bottom-up approach or a combina- tion of both.
Figure 3. Redline between design and implementation as consistency.
Figure 4. Accounting cycle.
4 H.L.H.S. Warnars
As agile methodology theory about using simple tools for developing software application we formulate software modelling lifecycle as shown in Figure 6. This software modelling will be sufficient for all kinds of business level/area according to my experiences with the implementation of object-oriented analysis and design. Each software modelling lifecycle can be chosen by every organisation or person to match their business process and thereby help in the development of the business. Sometimes an organisation or a person will explore some software modelling lifecycle without the need to use the whole steps and even they can add some other methods for improvement. There are some advantages and disadvantages in all the software modelling lifecycles. The steps for developing software application in Figure 7 will be divided as follows:
(1) User requirement (2) Data model (3) Business process model (4) (a) Prototyping; (b) Class interaction.
In the fourth step there will be simultaneous activities. This step can be started with prototyping or class interaction activities but each of them will complement each other. For each step there will be technique, tools and diagrams which will be arranged chronologically.
5.1. User requirement
User requirement bridges our knowledge with the user’s needs. We would never know the needs, expectation, dream of the user if we do not analyse
the user requirement. User requirement will be done in order to satisfy the user. For user requirement we do not need UML diagram, but common user require- ment techniques like interview, observation, docu- ments, survey, Joint Application Development (JAD) and other techniques are sufficient. There are five user requirements which can be used by all, but the first three must be done for novice. Interview, observation and documents must be carried out because when we perform user requirement then
Figure 5. Blueprint of a house.
Figure 6. Software modelling lifecycle.
Figure 7. Software modelling lifecycle with technique, tools and diagram.
Behaviour & Information Technology 5
Figure 13 shows each type of class in implementa- tion as consistency between design and implementa- tion. Data model only uses entity class as data stored in database, boundary and control class will be used when we model class interaction with sequence diagram (Ambler 2008a). For example, when we do user requirement we got two as-is documents for retail shop. As interview asked then has been known that every customer will be given an invoice as a bill for their transaction. Figure 14 shows an example of as-is invoice document. After the customer has paid the bill the shopkeeper will issue the receipt as a proof of payment. Figure 15 shows an example of as-is receipt document. Based on the two as-is documents and the interview’s results then the entity class diagram will be modelled as shown in Figure 16. This entity class diagram is logical data model for each table in the database.
5.3. Business process model
After the step data model has been done we move on to the next step to build the business process model using
case diagram. Based on entity class diagram, the business process model will be modelled. The line arrow between data model and business process model step in Figure 17 shows that business process model step can be done only if data model’s activity as entity class diagram has been created. Also the activity in business process model will influence data model. We can go back to data model step if in the middle of our model we need to model new entity class or table and automatically will influence the use case diagram model. Before transforming our entity class diagram into business process model using case diagram, we must first divide the entity class diagram or table as follows:
(1) Master table: Master table is a table where the records must be created first before running the system. Recording at this table has to be relatively permanent. (2) Transaction table: A table where the records must be created if there is a transaction.
Based on example entity class diagram we have two master tables which are Customer and Item tables and three transaction tables which are Invoice, Receipt and Purchase. For each master table we will create one use case on use case diagram, as shown in Figure 18. The first, use case will be named maintain customer as a process to maintain master table customer. The next
Figure 10. Boundary class.
Figure 11. Control class.
Figure 12. Entity class.
Figure 13. The three types of classes and implementations.
Behaviour & Information Technology 7
use case will be named maintain item as a process to maintain master table item. For transaction we will make use case on use case diagram based on documents (Ambler 2008c) which will be created and as a result in user requirement step, we must create two documents which are invoice and receipt documents, as shown in Figure 19. The use case will be named ‘create invoice’ as a process to create
invoice document and the other will be named ‘create receipt’ as a process to create receipt document at to-be system. Each system must have some reports which can be used by high level management or owner as informa- tion to make the decisions. Many reports can be created as the user need, as shown in Figure 20, for example.
Figure 14. As-is document – invoice.
Figure 15. As-is document – receipt.
8 H.L.H.S. Warnars
Figure 23. Main menu prototyping.
Figure 24. Main menu sequence diagram.
10 H.L.H.S. Warnars
The line arrow between class interaction/prototyp- ing and business process model step shows that class interaction/prototyping step can be done only if business process model activity with use case diagram model has been created. Also the activity in class Figure 25. Alt interaction frame. interaction/prototyping will influence business process
Figure 26. Place of methods.
Figure 27. Boundary class diagram.
Behaviour & Information Technology 11
Figure 29. From use case to form and to sequence.
Behaviour & Information Technology 13
where each of boundary class diagrams will have one form Visual Basic as prototyping implementation. Figure 28 shows the prototyping form with Visual Basic for all boundary class diagram. Each use case diagram will have one boundary class and will have one form Visual Basic as proto- typing implementation and has one sequence diagram. Then we will have seven sequence diagrams for seven use case on use case diagram and for seven boundary class diagrams. For example, we will use maintain customer use case, as shown in Figure 29. In Customer form we have five command buttons then we have five alternatives as an optional on alt interaction frame. Entity class customer just only attach with sql statement and not method, because for the implementation will be used only with MS Access database. For control class name control have been invoked method connect( ), then automatically that method will become as method on control class name control. Also for customer form boundary class all the methods which have been invoked will become its methods. Figure 30 shows the relationship between boundary class diagram customer with entity class diagram customer and the relationship between boundary class diagram with control class diagram.
Each use case on use case diagram can be attached with use case specification to explain what activity happens on that use case. Other diagrams like activity diagram or state machine diagram can be used as extending diagrams to provide a picture about business process modelling in both as-is system or in to-be system. There is no need to use communication diagram as another way to picture interaction diagram beside sequence diagram.
Component diagram can be mixed with deployment diagram to picture for client–server implementation, client programming, server programming, two tier and three tier networking. All those diagrams and other new UML 2 diagram like composite structure diagram, timing diagram and interaction overview diagram can be used but keep it simple as agile methodology’s requirement. The next extended paper will be needed to explain the use of sequence diagram as dynamic diagram, besides the fact that each language program has its own syntax and characteristics. CASE tool can be developed by this consistent approach both forward engineering and reverse engineering as an answer for Larman’s issue about lack from CASE tools which can only do the static model (Larman 2005). UML is a powerful tool to model the information system, one thing that we need is the person not having good object-oriented model and implementa- tion programming skills will just draw bad UML design (Larman 2005). We need to make consistent our current knowledge between object-oriented language programming and object-oriented modelling. UML is a modelling language which has been approved by some industry leaders as a barometer to model object- oriented modelling. For some people UML is still lacking, but realistically UML is a current modelling language.
References Ambler, S.W., 2002. Agile modeling: effective practices for eXtreme programming and the unified process. New York, USA: John Wiley & Sons, Inc. Ambler, S.W., 2008a. UML 2 class diagram [online]. Available from: http://www.agilemodeling.com/style/ classDiagram.htm [Accessed Jan 15, 2008].
Figure 30. Class relation on maintain customer sequence diagram.
14 H.L.H.S. Warnars