0% found this document useful (0 votes)
54 views4 pages

Sequence Diagram for Online Voting System

The document discusses sequence diagrams and their components. A sequence diagram shows the interaction between objects over time and includes lifelines to represent objects, messages to show communication between objects, and notes to provide additional information. It describes how sequence diagrams establish roles and responsibilities of objects and help understand the overall flow and sequence of a program.

Uploaded by

Nipun Desai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views4 pages

Sequence Diagram for Online Voting System

The document discusses sequence diagrams and their components. A sequence diagram shows the interaction between objects over time and includes lifelines to represent objects, messages to show communication between objects, and notes to provide additional information. It describes how sequence diagrams establish roles and responsibilities of objects and help understand the overall flow and sequence of a program.

Uploaded by

Nipun Desai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

ONLINE VOTING SYSTEM

PRACTICAL-6 SEQUENCE DIAGRAM


sequence diagram is a graphical view of a scenario that shows object interaction ina time-based sequence-what happens first, what happens next. Sequence diagrams establish theroles of objects and help provide essential information to determine class responsibilities andinterfaces. A sequence diagram has two dimensions: the vertical dimension represents time; theh o r i z o n t a l d i m e n s i o n r e p r e s e n t s d i f f e r e n t o b j e c t s . T h e v e r t i c a l l i n e i s c a l l e d t h e o b j e c t s lifeline.

The lifeline represents the objects existence during the interaction. This form was first popularized by Jacobson. An object is shown as a box at the top of a dashed vertical line. Arole is a slot for an object within a collaboration that describes the type of object that may playthe role and its relationships to other roles. However, a sequence diagram does not show therelationships among the roles ort eh association among the objects. An object role is shown asa vertical dashed line, the [Link] message is represented by an Arrow between the lifelines of two objects. Theorder in which these messages occur is shown top to bottom on the page. Each message islabeled with the message name. The label also can include the argument and some controlinformation and show self-delegation, a message the argument and some control informationand show self-delegation, a message that an object sends

090370131013

page

ONLINE VOTING SYSTEM

to itself, by sending the messagearrow back to the same lifeline. The horizontal ordering of the lifelines is arbitrary. Often, callarrows are arranged to proceed in one direction across the page, but this is not always possibleand the order conveys no [Link] sequence diagram is very simple and has immediate visual appeal---this is itsgreat strength. A sequence diagram is an alternative way to understand the overall flow of thecontrol of a program, instead of looking at the code and trying to find out the overall sequenceof [Link] following tools located on the sequence diagram toolbox which enable to model sequencediagrams:

An object has state, behavior, and identity. The structure and b e h a v i o r o f similar objects are defined in their common class. Each object in a diagram indicatessome instance of a class. An object that is not named is referred to as a class instance.27

Message Icons: A message icon represents the communication between o b j e c t s indicating that an action will follow. The message icon is a horizontal, solid arrowconnecting two lifelines together. : Focus of Control (FOC) is an advanced notational technique thatenhances sequence diagrams. It shows the period of time during

090370131013

page

ONLINE VOTING SYSTEM

which an object is performing an action, either directly or through an underlying procedure. : A Message to Self is a tool that sends a message from one object back to the same object. It does not involve other objects because the message returns to thesame object. The sender of a message is the same as the receiver. : A note captures the assumptions and decisions applied d u r i n g a n a l y s i s a n d design. Notes may contain any information, including plain text, fragments of code, or references to other documents.

A note anchor connects a note to the element that it affe

090370131013

page

ONLINE VOTING SYSTEM

090370131013

page

You might also like