美文网首页
YUML----activity

YUML----activity

作者: Runxing | 来源:发表于2015-12-21 15:52 被阅读26次

    活动图

    动作(Action)
    (状态名)表示一个状态,其中(start)(end)分别表示开始状态和结束状态,箭头->表示状态的转换

    ![](https://img.haomeiwen.com/i46259/3e723bb2cdec264a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)->(Boil Kettle)->(end))
    

    ->(Boil Kettle)->(end))

    判断和限制(Decisions and Constraints)
    使用<判断名>表示一个条件判断,其后跟[条件]->表示满足条件后状态的转换,用不同的判断名来标示不同的判断位置

    ![](https://img.haomeiwen.com/i46259/3e723bb2cdec264a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)-><a>[kettle empty]->(Fill kettle)->(Boil kettle),<a>[kettle full]->(Boil kettle)->(end))
    

    -><a>[kettle empty]->(Fill kettle)->(Boil kettle),<a>[kettle full]->(Boil kettle)->(end))

    分支合并(Fork/Join)
    使用||表示分支或者合并点

    ![](https://img.haomeiwen.com/i46259/3e723bb2cdec264a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)-><a>[kettle empty]->(Fill kettle)->|b|,<a>[kettle full]->|b|->(Boil kettle)->|c|,|b|->(Add Tea Bag)->(Add Milk)->|c|->(Pour Water)->(end))
    

    -><a>[kettle empty]->(Fill kettle)->|b|,<a>[kettle full]->|b|->(Boil kettle)->|c|,|b|->(Add Tea Bag)->(Add Milk)->|c|->(Pour Water)->(end))

    对象(Objects)
    符号[]表示一个对象

    ![](https://img.haomeiwen.com/i46259/3e723bb2cdec264a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)->[Water]->(Fill kettle)->(end))
    

    ->[Water]->(Fill kettle)->(end))

    连接器名称(Connector Name)
    ->中加入名称,-名称>表示命名连接器

    ![](https://img.haomeiwen.com/i46259/3e723bb2cdec264a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)-fill>(Fill kettle)->(end))
    

    -fill>(Fill kettle)->(end))

    相关文章

      网友评论

          本文标题:YUML----activity

          本文链接:https://www.haomeiwen.com/subject/vmpmhttx.html