例如,可能将消息名称生成为op1_faultmsg。
For example, the message name might be generated as op1_faultMsg.
如果将错误的消息名称与操作名称分离,则可以重用该消息,并且看起来也不感到陌生(请参见清单3)。
If you disassociate the fault message name from the operation name, you can reuse that message without it looking strange (see Listing 3).
此外,如果一个序列图消息引用一个操作,那么这个操作随后就会被重构,这个消息名称就会自动被更新。
In addition, if a Sequence diagram message references an operation, and the operation is subsequently refactored, the message name will be updated automatically.
应用推荐