📄 umlcomoad005.htm
字号:
<p>void remove_Value(in Value theObject);</p> <p>Message add_Message();</p> <p>void remove_Message(in Message theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface LinkRoleFactory {</p> <p>LinkRole create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ActionExpression: Core_Concepts::Expression {</p> <p>attribute Transition effect;</p> <p></font> <font face="Courier New"></p> <p>ActionCollection referencedActions();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ActionExpressionFactory {</p> <p>ActionExpression create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface StateMachine: Behavior {</p> <p>attribute TransitionCollection transitions;</p> <p></font> <font face="Courier New"></p> <p>attribute VertexCollection vertices;</p> <p></font> <font face="Courier New"></p> <p>Transition add_Transition();</p> <p>void remove_Transition(in Transition theObject);</p> <p>Vertex add_Vertex();</p> <p>void remove_Vertex(in Vertex theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface StateMachineFactory {</p> <p>StateMachine create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface TimeExpression: Event, Core_Concepts::Expression {</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface TimeExpressionFactory {</p> <p>TimeExpression create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface Behavior: Core_Concepts::ModelElement {</p> <p>attribute Structural_Elements::Pattern behaviors;</p> <p></font> <font face="Courier New"></p> <p>attribute Structural_Elements::InstanceCollection actions;</p> <p></font> <font face="Courier New"></p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface BehaviorFactory {</p> <p>Behavior create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface Message: Core_Concepts::ModelElement {</p> <p>attribute BooleanExpression guard;</p> <p>attribute Core_Concepts::String sequence;</p> <p>attribute Core_Concepts::Boolean isAsynchronous;</p> <p>attribute {activation,_return} direction;</p> <p>attribute Core_Concepts::Uninterpreted script;</p> <p>attribute LinkRole messages;</p> <p></font> <font face="Courier New"></p> <p>attribute Structural_Elements::Instance thread;</p> <p></font> <font face="Courier New"></p> <p>attribute Action action;</p> <p></font> <font face="Courier New"></p> <p>Core_Concepts::Name label;</p> <p></font> <font face="Courier New"></p> <p>Instance add_Instance();</p> <p>void remove_Instance(in Instance theObject);</p> <p>Action add_Action();</p> <p>void remove_Action(in Action theObject);</p> <p>Name add_Name();</p> <p>void remove_Name(in Name theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface MessageFactory {</p> <p>Message create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ActionState: State {</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ActionStateFactory {</p> <p>ActionState create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface BooleanExpression: Core_Concepts::Expression {</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface BooleanExpressionFactory {</p> <p>BooleanExpression create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface State: Vertex {</p> <p>attribute Structural_Elements::AttributeCollection state_variable;</p> <p></font> <font face="Courier New"></p> <p>attribute TransitionCollection internal_transition;</p> <p></font> <font face="Courier New"></p> <p>attribute Structural_Elements::InstanceCollection state_instance;</p> <p></font> <font face="Courier New"></p> <p>Attribute add_Attribute();</p> <p>void remove_Attribute(in Attribute theObject);</p> <p>Transition add_Transition();</p> <p>void remove_Transition(in Transition theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface StateFactory {</p> <p>State create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>};</p> </font><b><font face="Arial" size="4"><p>4.3.2 <a name="4.3.2"></a>Core_Concepts </font><font size="4">模块</p> </font> </b><font face="Courier New"><p>#include <CosLifeCycle.idl></p> <p>#include <CosStream.idl></p> <p>#include <Structural_Elements.idl></p> <p></font> <font face="Courier New"></p> <p></font> <font face="Courier New"></p> <p>// =========================================================</p> <p></font> <font face="Courier New"></p> <p>module Core_Concepts {</p> <p></font> <font face="Courier New"></p> <p>interface Note;</p> <p>interface TaggedValue;</p> <p>interface ViewElement;</p> <p>interface Model;</p> <p>interface Element;</p> <p>interface ModelElement;</p> <p>interface References;</p> <p>interface Owns;</p> <p>interface Package;</p> <p>interface Time;</p> <p>interface System;</p> <p>interface Stereotype;</p> <p>interface Relationship;</p> <p>interface Constraint;</p> <p>interface Dependency;</p> <p></font> <font face="Courier New"></p> <p>typedef Collection PointCollection;</p> <p></font> <font face="Courier New"></p> <p>typedef Collection NoteCollection;</p> <p>typedef Collection TaggedValueCollection;</p> <p>typedef Collection ViewElementCollection;</p> <p>typedef Collection ModelCollection;</p> <p>typedef Collection ElementCollection;</p> <p>typedef Collection ModelElementCollection;</p> <p>typedef Collection ReferencesCollection;</p> <p>typedef Collection OwnsCollection;</p> <p>typedef Collection PackageCollection;</p> <p>typedef Collection TimeCollection;</p> <p>typedef Collection SystemCollection;</p> <p>typedef Collection StereotypeCollection;</p> <p>typedef Collection RelationshipCollection;</p> <p>typedef Collection ConstraintCollection;</p> <p>typedef Collection DependencyCollection;</p> <p></font> <font face="Courier New"></p> <p>typedef string String;</p> <p>typedef boolean Boolean;</p> <p>typedef unsigned_longUML_blob;</p> <p>typedef string Multiplicity;</p> <p>typedef string Name;</p> <p>typedef string Expression;</p> <p>typedefUML_blob Uninterpreted;</p> <p>enum Visibility {</p> <p>public, protected, private, implementation</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>struct Point {</p> <p>unsigned_long x;</p> <p>unsigned_long y;</p> <p>unsigned_long z;</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface Note: ModelElement {</p> <p>attribute Uninterpreted value;</p> <p>attribute Structural_Elements::PatternCollection notes;</p> <p></font> <font face="Courier New"></p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface NoteFactory {</p> <p>Note create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface TaggedValue: ModelElement {</p> <p>attribute Uninterpreted value;</p> <p>attribute String name;</p> <p>attribute Element characteristic;</p> <p></font> <font face="Courier New"></p> <p>attribute TaggedValueCollection tagset;</p> <p></font> <font face="Courier New"></p> <p>TaggedValue find_by_name(in Name name);</p> <p>TaggedValue add_TaggedValue();</p> <p>void remove_TaggedValue(in TaggedValue theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface TaggedValueFactory {</p> <p>TaggedValue create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ViewElement: Element {</p> <p>ProjectionCollection get_projection();</p> <p>ModelElement add_ModelElement();</p> <p>void remove_ModelElement(in ModelElement theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ViewElementFactory {</p> <p>ViewElement create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface Model: CosStream::Streamable {</p> <p>attribute Name name;</p> <p>attribute PackageCollection represents;</p> <p></font> <font face="Courier New"></p> <p>attribute System abstraction;</p> <p></font> <font face="Courier New"></p> <p>ElementCollection contents();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ModelFactory {</p> <p>Model create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface Element: CosLifeCycle::LifeCycleObject {</p> <p>attribute TaggedValueCollection characteristic;</p> <p></font> <font face="Courier New"></p> <p>attribute Stereotype classification;</p> <p></font> <font face="Courier New"></p> <p>Name name;</p> <p></font> <font face="Courier New"></p> <p>OwnsCollection get_owns();</p> <p>ReferencesCollection get_references();</p> <p>DependencyCollection get_dependency();</p> <p>TaggedValue find_by_name(in Name name);</p> <p>TaggedValue add_TaggedValue();</p> <p>void remove_TaggedValue(in TaggedValue theObject);</p> <p>Stereotype add_Stereotype();</p> <p>void remove_Stereotype(in Stereotype theObject);</p> <p>Name add_Name();</p> <p>void remove_Name(in Name theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ElementFactory {</p> <p>Element create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ModelElement: Element {</p> <p>attribute Structural_Elements::ComponentCollection implements;</p> <p></font> <font face="Courier New"></p> <p>ProjectionCollection get_projection();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ModelElementFactory {</p> <p>ModelElement create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface References: CosLifeCycle::LifeCycleObject {</p> <p>attribute Name alias;</p> <p>attribute Visibility visibility;</p> <p>attribute Package Package_reference;</p> <p>attribute Element Element_reference;</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface ReferencesFactory {</p> <p>References create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface Owns: CosLifeCycle::LifeCycleObject {</p> <p>attribute Visibility visibility;</p> <p>attribute Package Package_reference;</p> <p>attribute Element Element_reference;</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface OwnsFactory {</p> <p>Owns create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface Package: ModelElement, Structural_Elements::GeneralizableElement, CosStream::Streamable {</p> <p>attribute Model represents;</p> <p></font> <font face="Courier New"></p> <p>OwnsCollection get_owns();</p> <p>Element add_Element();</p> <p>void remove_Element(in Element theObject);</p> <p>ReferencesCollection get_references();</p> <p>Element add_Element();</p> <p>void remove_Element(in Element theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface PackageFactory {</p> <p>Package create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface Time: CosLifeCycle::LifeCycleObject {</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface TimeFactory {</p> <p>Time create();</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface System: CosStream::Streamable {</p> <p>attribute Name name;</p> <p>attribute ModelCollection abstraction;</p> <p></font> <font face="Courier New"></p> <p>attribute DependencyCollection trace;</p> <p></font> <font face="Courier New"></p> <p>attribute StereotypeCollection define;</p> <p></font> <font face="Courier New"></p> <p>Model add_Model();</p> <p>void remove_Model(in Model theObject);</p> <p>Dependency add_Dependency();</p> <p>void remove_Dependency(in Dependency theObject);</p> <p>Stereotype add_Stereotype();</p> <p>void remove_Stereotype(in Stereotype theObject);</p> <p>};</p> <p></font> <font face="Courier New"></p> <p>interface SystemFactory {</p> <p>System create();</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -