Wednesday, 15 June 2011

php - slight issues while implementing a sequence diagram -



php - slight issues while implementing a sequence diagram -

i have sequence diagram in screenshot below have 2 little questions:

question 1: pages follow sequence until user gets on penalty marks information page, there decide if want enable penalty marks of disable penalty marks. if enabled go penalty marks each answer page, if want disable go straight assessment completed page. question is diagram below right when trying match or need implemented in different way in diagram.

question 2: after each page subbmitted it's own insert database table, how can include in diagram insert db well? can please show illustration on how between 2 pages can see how done?

screenshot of sequence diagram:

thank you

the sequence diagram not seem follow general approach. wikipedia article (and uml user guide): sequence diagram

depicts objects , classes involved in scenario , sequence of messages exchanged between objects needed carry out functionality of scenario

so "swimlanes" should not labelled activities "create assessment", objects in solution. objects show depends on scheme design; in mvc application, you'd show "assessment controller" talking "assessment" model object, might talk database store , retrieve assessments.

the messages sent between actors/objects in system. so, logged-in teacher sends message "create" assessment controller; assessment controller validates message , creates new "assessment" model object, in turn might send "persist" message database.

there are, of course, other ways of using sequence diagrams - depends on level of granularity using. model domain entities (teacher, assessment, question, reply etc.) , explore how send messages each other accomplish scenario, or model software components (browser, web server, script engine, database) - depends on trying achieve.

a simple version might (i stopped after creating answers, because couldn't quite follow requirement).

apropos question 2: first have decide component tells database save assessment - depends exclusively on software design. 1 time you've taken decision, draw line component database, "save" message; database responds "success" or "fail".

php html database web sequence-diagram

No comments:

Post a Comment