UML中的/符号是什么意思

What does / symbol mean in UML

我试图遵循此 link http://www.uml-diagrams.org/android-camera-uml-class-diagram-example.html 中的 uml 图。

在 CameraDemo class 中,我们在 onStart()、onStop() 等方法的每个访问说明符(如 +、#、_)之后找到“/”。

(示例:#/onStart() )

里面的“/”是什么意思

提前致谢。

attributes中的/用来表示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>

所以没有 Derived 或 /

的迹象