Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your task for this assignment is to create a PDF document with two UML sequence diagrams as required below.UML Sequence Diagram A: SCTP Four -
Your task for this assignment is to create a PDF document with two UML sequence diagrams as required below.UML Sequence Diagram A: SCTP FourWay HandshaleThis UML sequence diagram has two lifelines called Client and Server. These should be "instances" not "threads". The sequence logic is as follows timewise in the order listed:The client sends an asynchronous message to the server that takes time with the label "INITTaThe server sends an synchronous message to the server that takes time with the label "INITACKTbcookieThe client sends an asynchronous message to the server that takes time with the label "COOKIETbcookieThe server sends an synchronous message to the server that takes time with the label "COOKIEACKTaThis diagram therefore has two lifetimes with two arrows going from the client to the server and two from the server to the client.ASIDE: SCTP is a network protocol that is similar to but different and more flexible than TCP TCP has a threeway handshake at the start of a connect and SCTP has a different fourway handshake. That said, this is not a computer networking course so I will not elaborate further except to say again many aspects of computer networking are nicely expressed as sequence diagrams. :UML Sequence Diagram B: A Small ProgramSince these are your first sequence diagrams, this example will keep things simple. Draw a sequence diagram based on the code that follows:class SeqDia private static double hmmmdouble x return x; private static double bardouble x double y return x hmmmy; private static double foodouble x double y double z double result barxz xy; return barresulty y; main is to simply demonstrate calling the above should you want to compile and run this program public static final void mainString args System.out.printlnOutput: foo; In particular you want three lifelines here: foo bar and hmmmIf one was discussing the operation sequence of foo then foo and bar matter.In this case, you are to also draw this diagram with a lifeline for hmmm as it matters for this part of this assignmentDraw the synchronous "call" arrows modelled after the code above.ie don't draw a lifeline for main or any arrows that call foo from main Clearly some code calls foothis diagram is concerned what foo does not what the callers are doing with what foo returns.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started