# data[].attributes.body
WRITE YOUR FULL NAME

Read the problem solving QUESTION from your E-LEARNING:

1. Write down your answer based on the question no.

2. Draw your diagram using Enterprise Architect tool or draw.io and paste your answer in paddlet

# data[].attributes.body
1.       (i) Use case diagram helps to model the system and how users perform each task belonging to the system and thus shows the interaction of users with the system. Activity diagram helps to model the workflow of the system and helps to represent clearly the complex sections of the action sequences of a use case. Swimlane helps to clarify who does what (specific activity) in a process by separating the activities of each actor.

(ii) I believe that activity diagram is the most useful as it will help to clearly differentiate the workflow of each user in the system

# data[].attributes.headline
Shahrul Asyraf Bin Muhammad Hisham Segaran

# data[].attributes.subject
Shahrul Asyraf Bin Muhammad Hisham Segaran

# data[].attributes.body
1. A use case diagram helps to model the system and user interactions with the system. An activity diagram helps to model the overall workflow of the system. A swimlane diagram clearly shows which participants perform their specific tasks. Each diagram has its own advantage but the best diagram that should be used to represent the existing business process of the university library is activity diagram. This is because there is a lot of activities that are occurring in the system. Using an activity diagram will allow a much easier way to read and understand the workflow of the system. There will not be too much text description and pictures are much easier to follow. Besides that, even though there are technically three types of users which are faculty, graduate students and undergraduate students who are using the library system, they can all be generalized as patrons so, using a swimlane diagram which is to help us identify multiple users doing which task is pointless. Overall, the activity diagram is the best diagram to represent this business process.

2. Domain Class Diagram

# data[].attributes.body
- Use Case Diagram is focusing on designing the behavior of all of the actors. What an actor could possibly does to the system

- Swim Lane Diagram is more focused on the interaction between object or user in a flow of a use case or feature in the system

- Activity diagram is a basically a flowchart of an activity flow in the system. It may also contain a “swim lane” diagram partition.

The most suitable diagram from those 3 for this case studies is I think the “Activity” diagram. Cause, the only activity described in the case studies is loaning a book & reserving it thus, “Use Case” diagram which best when focused more on how actors interact with a lot variety of activities, not really match with this case studies.

“Activity” diagram which is best at describing the flow of a specific activity is more preferable in this case. It can also include the partition to describe which part of flow performed in a certain object, which is a feature that a “swim lane” diagram have. While basically the same “Activity” diagram which use flowchart is more understandable and more detailed than “swim lane” diagram.

2. Domain Class

# data[].attributes.body
1. Use case is a model that represents the user’s interaction with the system.

Activity diagram is a model that represents the series of actions of flow control in a system similar to a flowchart.

Swim lane diagram is a type of flowchart that delineates who does what in a process.

The diagram is suitable to represent existing business process of university library is Activity Diagrams, because there are many partitions and can group different responsibilities of each partition.

2. Domain Class Diagram

# data[].attributes.body
Q1-i: The use case diagram provides information as to who will use the system (actors) and how the actors will interact with the system (use cases) so that they get a benefit out of that interaction.

The activity diagram shows the details of how the system provides a benefit to the user (actor).

The swim lanes are used to segregate/separate steps in a process that contain similar characteristics. Most commonly based on the role or function.
_____________________________
Q1-ii: The suitable diagram is Activity diagram to represent the business process of university library because itconsists of activities that are made up of actions which apply to behavioral modeling technology as well as it is focuses on the execution and flow of the behavior of a system instead of implementation. It can also describes the steps in a use case diagram and swimlane could be participate in it. In short, all the diagrams can be represented into one diagram which we call it activity diagram.
_____________________________
Q2:

# data[].attributes.body
Q1/
1-They have different syntax and notations to describe the system.

2-The activity diagram represents the flow from one to another in the system (model the workflow) while the use case used to model the system using (user interactions)
.....................................................
Q2/
The activity diagram because it provides high level view of the system:

1-Identify the candidate use cases.

2-Identify pre and post conditions for use cases.

3-Modelling complex workflows in operations on objects.

4-Modelling workflows between use cases.

5-Modelling in details complex activities.

# data[].attributes.body
i. The difference between use case, activity diagram and swim lane is that a use case diagram represents the user’s interaction with the system. On the other hand, an activity diagram represents the series of actions or flow control in a system similar to a flowchart . swim lane shows the interaction between  the objects in the system and how it flows.

^^^^^^^^^^^^^^^^^^^^^^^
ii.  In my opinion the activity diagram is best because it presents more details which will be easier for us to understand in the library case study.

# data[].attributes.body
1.       Use Case Diagram is just summarization of some of the relationships between use cases, actors, and details. Activity Diagram is more detailed with representation of flow of activities involved in a process or scenario. Swimlane Diagram an extension of Activity Diagram in terms of showing the organisational responsibility for parts of the process.

2.       Activity Diagram. Activity Diagram is much more practical way to represent the existing business process of university library for complex systems and higher level of program. It helps figuring out constraints and conditions that cause particular events. The short of participants in the system also indicates that Swimlane Diagram is also irrelevant for system representation.

# data[].attributes.body
1. Use cases help to examine and documents a planned or existing systems from users perspective.
Swim Lane is more of a detailed, step by step what happen in to each actor and what they will do
.Activity diagram is more of a birds eye view of the flow of what the system does, more like a summary

2 Activity diagram. For this scenario, it is best to use activity diagram as there is a lot of things happening with the library system with intricate details. Since the purpose of the activity diagram is to be easily readable, then the situation suits to use the activity diagram as we can see what is going on without looking at the details too much

# data[].attributes.body
1 -
*  Use case: use case represents a high-level behavioural modelling of system.
* Activity diagram: represents a flow control of the system with more detailing actions.

* Swim lane: it can be used to represent business processes modelling from start to finish,

However, it divides these steps into categories to help distinguish which department or employees are responsible for each set of action.

2-
Activity diagram:
justification:
1. More understandable for non-technical business user.

2. More readable for complex actions.

3. Can be synchronized with textual form.

3- domain class model

# data[].attributes.body
1. The difference is of perspective. Use case diagram and activity diagrams are both drawn from a functional perspective. The key difference between use case diagram and activity diagram is that the use case diagram helps to model the system and user interactions while the activity diagram helps to model the workflow of the system. Domain class diagram is drawn from the perspective of data. It shows the different entities and relationships between entities.
2. Definitely, it is domain class diagram. Since a lot of data needs to be stored and the business process is about storing the data, we need to know the different entities whose data we have to store and the relationships between these entities.

# data[].attributes.body
Question 1
i. The difference between use case and activity diagram is that a use case diagram helps to model the user’s interaction with the system but as for swim lane is more focused on the interaction between the objects and the flow of them and it also characterizes all kinds of flow charts with swim lanes
------------------------------
ii. Activity diagram is best to use in this system as it best describes the flow of the system and its interaction between the users as there are three different types of users that will be interacting with the system and it is more preferable in this case as it has more detail and it shows it in a graphical sense.
-------------------------------
Question 2

# data[].attributes.body
Question 1
i. A\ They have different syntax and notation to be represented on, and use case diagram helps to model the system, user interactions while activity diagram helps to model the work flow of the system.
ii. A\ Activity diagram because it provides a broader view than the other method and could represent the case very clearly.

Also it can help with:
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.

Question 2:

# data[].attributes.body
Question 1
i. Use case diagram is used to model a system, actors within the system, the behaviors/actions that the actors can perform, and the interaction between/among the actors inside the system. Activity diagram is used to model the workflow of the system, akin to a flowchart. Swim lane is used to model a system by illustrating which actors does which action in chronological order which also forms a flowchart-like diagram similar to activity diagram, although the actions are grouped by who performs such action.
--------------------------------
ii. Both swim lane and activity diagram are suitable as they also present the flow of the system. Swim lane however is more suitable on a system which involves multiple actors, and in this system only one actor (patron) is involved, which means that activity diagram is most suitable.

--------------------------------

Question 2:

# data[].attributes.body
i.

Use case diagrams are useful in the requirements collection where it is required to identify different use cases and establish the relation between actors and use cases.

Activity diagram is used to illustrate the interconnected flow of different activities and actions in a system. It is also used to display the steps involved in the execution of a use case.

swim lane is used to show the organizational responsibility for actors involve in the process.

ii. for university library the suitable diagram to represent existing business process is the activity diagram as it only focuses on the main sequences in of completing the use case.

# data[].attributes.body
1.)
Use Case Diagram is concentrating on planning the conduct of the entirety of the on-screen characters. What an entertainer might does to the framework

- Swim Lane Diagram is progressively centered around the communication between article or client in a progression of an utilization case or highlight in the framework

- Activity outline is a fundamentally a flowchart of a movement stream in the framework. It might likewise contain a "dip path" chart parcel.

The most appropriate graph from those 3 for this contextual analyses is I think the "Action" chart. Cause, the main movement portrayed for the situation contemplates is crediting a book and holding it along these lines, "Use Case" outline which best when concentrated more on how on-screen characters associate with a ton assortment of exercises, not so much match with this contextual analyses.

"Action" outline which is best at depicting the progression of a particular movement is progressively best right now. It can likewise incorporate the segment to portray which part of stream acted in a specific item, which is an element that a "dip path" chart have. While essentially the equivalent "Movement" chart which use flowchart is more justifiable and more point by point than "swim path" graph.

2.)

# data[].attributes.body
1)i. ONE differences between use case, activity diagram and swim lane

-Use case: use case represents a high-level behavioural modelling of system.

-Activity diagram: represents a flow control of the system with more detailing actions.

-Swim lane: it can be used to represent business processes modelling from start to finish,

However, it divides these steps into categories to help distinguish which department or employees are responsible for each set of action.

ii. Which diagram is suitable to represent existing business process of university library and justify why?

- Activity Diagram:

1) More understandable for non-technical business user.

2) More readable for complex actions.

3) Can be synchronized with textual form.

2)

# data[].attributes.body
This case study is based on University Library

Information is maintained both about book titles and the individual book copies. Book titles maintain information about title, author, publisher, and catalog number. Individual copies maintain copy number, edition, publication year, ISBN, book status (whether it is on the shelf or loaned out), and date due back in. The library also keeps track of its patrons. Because it is a university library, there are several types of patrons, each with different privileges. There are faculty patrons, graduate student patrons, and undergraduate student patrons. Basic information about all patrons is name, address, and telephone number.

For faculty patrons, additional information is office address and telephone number. For graduate students, information such as graduate program and advisor information is maintained. For undergraduate students, program and total credit hours are maintained. The library also keeps information about library loans.

A library loan is a somewhat abstract object. A loan occurs when a patron approaches the circulation desk with a stack of books to check out. Over time a patron can have many loans. A loan can have many physical books associated with it. (And a physical book can be on many loans over a period of time. Information about past loans is kept in the database.) So, in this case, an association class should probably be created for loaned books.

If a patron wants a book that is already checked out, the patron can put that title on reserve. This is another class that does not represent a concrete object. Each reservation is for only one title and one patron. Information such as date reserved, priority, and date fulfilled is maintained. When a book is fulfilled, the system associates it with the loan on which it was checked out.

Questions:

QUESTION 1

You are team leader for this project, however your team are not sure what diagram should they use to represent the model based requirements from the functional perspective. Your job is to relate to your team members the difference between use case, activity and swim lane diagram and which one is suitable to be used to represent the existing business process of university library [6 marks]

Your answer should state:

i.                     ONE differences between use case, activity diagram and swim lane

ii.                   use case diagram helps to model the system and user interactions while the activity diagram helps to model the workflow of the system and swim line   characterizes all kind of flow charts with swim lanes

iii.                 Which diagram is suitable to represent existing business process of university library and justify why

-activity diagram is the suitable strategy to represent the system , because   in the textual scenario it depended on showing the data as classes and its attributes

QUESTION 2

Develop a domain class diagram for the university library including all types of relationships (associations, aggregation, composition, generalization)                                               [14 marks]

# data[].attributes.body
Marwan Mostafa Taha
A18CS3016

This case study is based on University Library

Information is maintained both about book titles and the individual book copies. Book titles maintain information about title, author, publisher, and catalog number. Individual copies maintain copy number, edition, publication year, ISBN, book status (whether it is on the shelf or loaned out), and date due back in. The library also keeps track of its patrons. Because it is a university library, there are several types of patrons, each with different privileges. There are faculty patrons, graduate student patrons, and undergraduate student patrons. Basic information about all patrons is name, address, and telephone number.

For faculty patrons, additional information is office address and telephone number. For graduate students, information such as graduate program and advisor information is maintained. For undergraduate students, program and total credit hours are maintained. The library also keeps information about library loans.

A library loan is a somewhat abstract object. A loan occurs when a patron approaches the circulation desk with a stack of books to check out. Over time a patron can have many loans. A loan can have many physical books associated with it. (And a physical book can be on many loans over a period of time. Information about past loans is kept in the database.) So, in this case, an association class should probably be created for loaned books.

If a patron wants a book that is already checked out, the patron can put that title on reserve. This is another class that does not represent a concrete object. Each reservation is for only one title and one patron. Information such as date reserved, priority, and date fulfilled is maintained. When a book is fulfilled, the system associates it with the loan on which it was checked out.

Questions:

QUESTION 1

You are team leader for this project, however your team are not sure what diagram should they use to represent the model based requirements from the functional perspective. Your job is to relate to your team members the difference between use case, activity and swim lane diagram and which one is suitable to be used to represent the existing business process of university library [6 marks]

Your answer should state:

i. ONE differences between use case, activity diagram and swim lane

Activity diagram is  UML diagram which might contain a swim-lane but it is not complusory, which means that activity diagram might be considred as a swim-lane diagram and might not. On the other hand swimlane diagram is can not be a UML Diagram and it focuses on identifying the flow charts within its swim. Use case diagram is used to used to identify the actors and how does the system do but it does not show how are the system operations being done within the system

ii. Which diagram is suitable to represent existing business process of university library and justify why

I think we should use activity diagram because

1-Identify the candidate use case

2-Identify pre and post condition of each use case

3-Model workflows in object operations

4- Model workflows between each use case

5-Model complex activitys

QUESTION 2

Develop a domain class diagram for the university library including all types of relationships (associations, aggregation, composition, generalization)

# data[].attributes.body
i. ONE differences between use case, activity diagram and swim lane

Use case: A single use case represents the high-level functionality of a system. An ellipse represents a use case and the name is written inside of it.

Activity Diagram: An activity diagram is another behavioural diagram. It similar to a flowchart that represent the flow from one activity to another activity.

Swim lane: Swim lane add an extra level of clarity about who does what to process flowchart.

ii. Which diagram is suitable to represent existing business process of university library and justify why?

Activity diagram is very useful because it’s explain very single parts in diagram and each user in the system.

# data[].attributes.body
Question 1:

i.)
i. ONE differences between use case, activity diagram and swim lane

·Use case:  A better representation of the high-level behavioral modelling the system

·Activity diagram: Used to show the flow of the each case , elaborating what actually happens within it.

·Swim lane:  It can be used to represent business processes modelling from start to finish, However, it divides these steps into categories to help distinguish which department or employees are responsible for each set of action.
--------------------------------
ii.)
· Activity diagram:

1.Since it represents actions better

2.Easier to read and that can help with complex actions
--------------------------------
Question 2:

# data[].attributes.body
Question 1 -
the differences between use case , activity diagram and swimlane is -
1) use case diagram model the functionality of a system. Use cases are a set of actions, services, and functions that the system needs to perform.
2) basically a swimlane diagram describes who does what in process means  it defines the roles and functionality of each actor and the whole system
3) an activity diagram is a behavioral diagram which focus on the whole control flow of the system and clarify the activities

ii)
i think activity diagram is the most suitable to represent exiting business process of uni library because it depicts the actions more clearly and the whole control flow and activities of the whole system is more clearer and more understandable .also activity  diagram reflects  the workflows of step wise activities and actions with support for choice, iteration and concurrency.

Question 2 -

# data[].attributes.body
1. i) Use cases help to examine and documents a planned or existing systems from users perspective. The use case approach is based on two complementary documentation techniques a) Use case diagram b)Use case model

Swimlane is basically a Business process model that is functional perspective based. It allows us to visually distinguish duties and responsibilities, as well as sub-processes within these business processes.

Activity diagram is used as an alternative to graphical documentation to formulate the action sequences in use cases. It has merge nodes, fork and join nodes which swimlane and use case dont have

ii) I would prefer activity diagram over any other models since in shows each consecutive sequence from a user perspective which other models do not; at the same time is more  easy to understand.

2.

# data[].attributes.body
(I) Use case:
graph assists with displaying the framework and how clients play out each undertaking having a place with the framework and along these lines shows the collaboration of clients with the framework.
Activity diagram :
Assists with displaying the work process of the framework and assists with speaking to unmistakably the unpredictable segments of the activity arrangements of an utilization case.
Swim lane :
It assists with explaining who does what (explicit action) in a procedure by isolating the exercises of every on-screen character.

(ii) I opt for Activity diagram outline is the most valuable as it will help to unmistakably separate the work process of every client in the framework.