designing an operation using uml sequence diagram

旧城冷巷雨未停 提交于 2020-01-06 14:14:22

问题


How to design this operation using the UML sequence diagram?

Scenario:

The Tasks (Controler Task) adds one line on the database, the Computer (Controler Computer) gets in loop the full lines of the database and when it detects a new added line in DB (Entity Task), it gets the IP address and the port number of the server (Controler Server) from the database (Entity Server) and then sends the message.

Any brilliant suggestion, please?

Thanks a lot!


回答1:


Operation is behavioral feature. It has no behavior definition. If operation defined, it means, that there is usually a behavior defined in context of classifier (or specialized classifiers) which can be invoked by operation. Operation and behavior are usually connected. Operation plays role of specification of behavior and behavior is a method, how instance of classifier will behave. To define the behavior, use some of behavioral diagrams (Activity, StateMachine, Interaction ...) Descrition that you provided mostly corresponds to Activity.



来源:https://stackoverflow.com/questions/23415122/designing-an-operation-using-uml-sequence-diagram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!