我试图按照这个链接http://www.uml-diagrams.org/android-camera-uml-class-diagram-example.html中的uml图表.在CameraDemo类中,我们在每个访问说明符之后找到“/”,对于诸如onStart(),onStop()之类的方法,#,_.
(例如:#/ onStart())
那里的“/”是什么意思.
提前致谢.
解决方法:
/ in属性用于指示Derived,但该属性不存在于操作中.
我在规范中找不到符号的任何解释,因此我们只能将其视为名称的一部分.
规范(UML v2.5)声明:
9.6.4 Notation If shown in a diagram, an Operation is shown as a text string of the form:
[<visibility>] <name> ‘(‘ [<parameter-list>] ‘)’ [‘:’ [<return-type>] [‘[‘ <multiplicity-range> ‘]’] [‘{‘ <oper-property> [‘,’ <oper-property>]* ‘}’]]
where:
<visibility>
is the visibility of the Operation (see 7.4).
<visibility> ::= ‘+’ | ‘-‘ | ‘#’ | ‘~’
<name>
is the name of the Operation.
<parameter-list>
is a list of Parameters of the Operation
in the following format:<parameter-list> ::= <parameter> [‘,’<parameter>]*
where<parameter>
is defined in 9.4.4.
<return-type>
is the type of the return result Parameter if the
Operation has one defined.
<multiplicity-range>
is the multiplicity of the return type (see 7.5).
<oper-property>
indicates the properties of the Operation.
<oper-property> ::= ‘redefines’ <oper-name> | ‘query’ | ‘ordered’ | ‘unordered’ | ‘unique’ | ‘nonunique’ | ‘seq’ | ‘sequence’ | <oper-constraint>
所以没有衍生的迹象或/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。