在类间创建聚集及组成关系。
Create relationships with aggregation or composition between the classes.
在应用程序的逻辑设计模型中,对创建先于uml类library、Shelf和Book的标志,创建三个声明关系。
Create three manifestation relationships from the artifact created above to the UML classes Library, Shelf, and Book from the logical design model of the application.
在逻辑设计模型中,在以上标志和类List和Sorted List之间创建两个声明关系。
Create two manifestation relationships from the above artifact to the List and SortedList classes from the logical design model.
这个特性与新的对象创建语法关系密切,新的语法可以用类似数组的语法很容易地在Groovy 中创建 非定制类。
This feature goes hand-in-hand with a new syntax for object creation, which makes it easy to create non-custom classes in Groovy with an array-like syntax.
下一步,在类间创建关联关系,这使您能够在聚集及组成关系中选择一个。
Next, create an association relationship between the classes that enables you to choose either an aggregation or a composition relationship.
在本场景中,可以在父类元素与子类元素之间创建一种关系。
In this scenario, a relationship can be established between these parent and child elements.
如果你的类的依赖关系发生改变,这并不影响对象的创建,只需要配置容器就可以。
And if your dependencies change as your classes evolve, that doesn't impact the creation of those objects, just the configuration of the container.
在本例中,创建Pegasus作为Horse的子类很有意义,因为它表示了这两个类之间的关系。
In this case, creating Pegasus as a subclass of Horse makes sense because it expresses a relationship between the two classes.
或许应该创建一个一级类Contract来更好地表示Book与Author之间的关系。
Perhaps a first-class Contract class should be created to represent the relationship between Book and Author better.
若要实现弱事件模式,通常需要按照与该事件1:1的关系创建一个管理器类。
To implement the weak event pattern, you typically create a manager class with a 1:1 relationship to the event.
您可以向项目中添加空白的类图,也可以用现有的类型在项目中创建关系图。
You can add blank class diagrams to your project, or you can create diagrams from existing types in your project.
创建类关系图以检查项目中类的结构。
Create class diagrams to examine the structure of classes in the project.
创建类关系图以检查项目中类的结构。
Create class diagrams to examine the structure of classes in the project.
应用推荐