Class Diagram
2017-04-13 22:13:21 0 举报
类图(Class Diagram)是一种用于描述软件系统中的类、接口、关联关系、继承关系等结构的静态图形表示方法。它通过展示类及其属性、方法和关联关系,帮助开发者更好地理解系统的结构和设计,从而进行有效的代码编写和维护。类图通常包括以下元素:类(Class)、接口(Interface)、关联关系(Association)、聚合关系(Aggregation)、组合关系(Composition)、继承关系(Inheritance)和依赖关系(Dependency)。通过使用类图,开发者可以更好地组织和管理代码,提高开发效率和代码质量。
作者其他创作
大纲/内容
RobotMap
- intersections: List- tunnels: List
Intesection
- identifiers:String- numberOfTunnels: int- ceilingHeight: double- floorColor: Color- wallColor: Color- ceilingColor: Color
+ getNumberOfTunnels()+ getCeilingHeight()+ getFloorColor()+ getWallColor()+ getCeilingColor()+ setCeilingHeight(double ceilingHeight)+ getIdentifiers()+ toString()+ equals(Object obj)
Color
+ value: String
+ getValue()
Tunnel
- serialIdentifiers: String- length: double- ceilingHeight: double- floorColor: Color- wallColor: Color- ceilingColor: Color- start: Intersection- end: Intersection
+ getLength()+ setLength()+ getNumberOfTunnels()+ getCeilingHeight()+ getFloorColor()+ getWallColor()+ getCeilingColor()+ setCeilingHeight(double ceilingHeight)+ getSerialIdentifiers()+ setSerialIdentifiers(String serialIdentifiers)+ getStart()+ setStart(Intersection start)+ getEnd()+ setEnd(Intersection end)+ toString()+ equals(Object obj)
Client
+ main(String[] args)
ArrayList
- size: int- array: T[]+ MINIMUM_SIZE: int
+ add(T value)+ remove(T value)+ clear()+ contains(T value)+ indexOf(T value)+ int size()+ T get(int index)+ boolean validate()+ void sort(Comparator c)+ toString()
List
+ add(T value)+ remove(T value)+ clear()+ contains(T value)+ indexOf(T value)+ int size()+ T get(int index)+ boolean validate()+ void sort(Comparator c)
收藏
0 条评论
下一页