You are on page 1of 7

SWE2004: SOFTWARE ARCHITECTURE AND

DESIGN
Digital Assignment
Name: M Harish Gautham
Reg no: 22MIS0421

QUESTIONS:
1. Draw the JSP(Jackson Structure Programming) for the
Chat Application using WebSocket.
2. Draw the different level DFDs for the Chat Application
using WebSocket.
3. Draw the Use-case diagram for the Chat Application
using WebSocket.
SOLUTIONS:
1)Draw the JSP(Jackson Structure Programming) for the Chat Application using
WebSocket.
Step 1 : Draw the Input/Output JSDs

Step 2 : Create the JSD for the Program

Step 3: List operations and allocate to program blocks.


Inputs: Outputs:
1. Obtain the message to be sent. 5. Check the messages received.
2. Obtain Chat Room type. 6. Provide or Withheld Chat History.
3. Request Chat History 7. Manages various Accounts.
4. Manage one’s own Account 8. Manages many Chat Rooms.
9. Provides Notifications
Allocate to leaf elements in Structure Diagram:

Step 4: Convert to Text:


Outline Program :

open chats / records;


send message;
check messages;
get chat room type;
provide required chat room type;
manage one’s own account;
admin manages many accounts;
request for chat history;
provide or withhold the chat history;
provide notifications;
close chats / records;
Step 5: Add Conditions:
With Conditional Information :

open chats / records;


FOR each chat,
send message;
check messages;
get chat room type;
IF type == create,
THEN create chat room;
ELSE join chat room;
END IF
manage one’s own account;
admin manages many accounts;
request for chat history;
IF response == provide,
THEN chat history is provided;
ELSE chat history is withheld;
END IF
provide with notifications;
END FOR
close chats / records;

2) Draw the different level DFDs for the Chat Application using WebSocket.
DFD Level 0 :
DFD Level 1:

DFD Level 2 for User:


DFD Level 2 for Server:

3)Draw the Use-case diagram for the Chat Application using WebSocket.

You might also like