Object-oriented job summary fourth unit

Object-oriented job summary fourth unit

Architecture Design Summary

UML architecture design work for the first time

Architecture design for the first time I feel that the job is not good enough
UML diagram follows

the establishment of a UmlGraph in MyUmlInteraction, make interaction through inquiry of the UmlGraph.
UmlGraph defined in the following data

wherein ClassInformation for this abstract class and the interface of the two UmlElement, including

  1. All parent
  2. All properties
  3. All methods
  4. All classes associated
  5. All interface of
    all queries are the first by ID or name to find the corresponding ClassInformation objects, and then where to search.
    In the establishment of UML diagrams, I used the parse three rounds, for different UmlElement I wrote a corresponding parse method.
  6. In the first round parse, I read in the UML_CLASS and UML_INTERFACE
  7. In the second round parse, I read in UML_ATTRIBUTE, OPERATION, ASSOCIATIONEND, GENERALIZATION, INTERFACE_REALIZATION these element
  8. In the third round, I read in the UML_PARAMETER and UML_ASSOCIATION

The second architecture design work UML

In the second operation, I performed the entire reconstruction project code

UML configuration diagram shown above, a total of three subpixels in each of the UML diagram, respectively,

  1. FIG classGraph class
    2.sequenceGraph sequence diagram
    3.stateGraph state of FIG.

For UMLGRAPH the query, the function allocated to each class to achieve high cohesion, low coupling, coupling between each do not have to FIG.

classGraph

sequencGraph

stateGraph

OO理解方法的演进

测试理解和实践的演进

最开始的测试方式是通过idea自带的交互窗口进行测试。
之后学会了用命令行, 编译程序, 然后从txt里面读入数据, 进行测试。
到了多线程电梯单元, 和JML单元, 我通过python生成一些测试数据进行压力测试, 和输出对比。
后来逐渐开始使用JUNIT进行测试。

课程收货

通过课程, 我有以下几点收货

  1. 学会java语言, 了解封装继承多态的方法。
  2. 学会各种工具, 比如IDEA, checkStyle, metrics, jprofiler
  3. 学会了软件测试, 使用jUNIT 和自己写评测机生成数据来测试的方法。
  4. 对于架构设计和软件的重构方法有了一定的了解。(里氏替换原则, 接口抽离原则, 高内聚低耦合原则)
  5. 对于多线程并发有了深刻的认识。
  6. 使用JML建模语言对于软件进行规格设计, 和形式验证
  7. 使用UML对于架构进行设计

课程建议

有以下三点建议

  1. 建议指导书写的再清楚一点, 避免耽误无谓的时间。
  2. 添加一些设计模式的内容
  3. 取消JML

Guess you like

Origin www.cnblogs.com/ziyuzhu-edward/p/11058147.html