2019 Northern Soft Engineering Summer School jobs - Code submitted

PSP 2.1

Personal Software Process Stages

Time

Planning

plan

 

· Estimate

• Estimate how much time this task requires

1h

Development

Develop

 

· Analysis

· Needs analysis (including learning new technologies)

2h

· Design Spec

Generate design documents

 

· Design Review

· Design Review (and his colleagues reviewed the design documents)

-

· Coding Standard

· Code specifications (development of appropriate norms for the current development)

-

· Design

· Specific design

 

· Coding

· Specific coding

5h

· Code Review

· Code Review

-

· Test

· Test (self-test, modify the code, submit modifications)

 

Reporting

report

-

· Test Report

· testing report

-

· Size Measurement

· Computing workload

-

· Postmortem & Process Improvement Plan

· Hindsight, and propose process improvement plan

1h

 

total

 

 

 

0    Preparation:

In today's learning process, I http://10.2.28.170 Git repository server Fork, development and structure members Liao snowflake teachers to join the development team.

 

pit:

Developer status as a member of the team, there is no way to submit code to the master branch. Only Maintainer identity can change the code submitted to the master branch. Therefore rights issue, configure for a long time.

1,    the input-output standard

And assistant program confirmed the subway standard format input files and output files. The local software in question to be modified.

 

2,    packaged as a module

Liao discussions with members of the group snowflake teacher, packaged with two major categories.

1) Core class: packaging core computing subway lines, providing load map file loadMap (), the query line site getStations () and get the shortest path getShortPath () interface.

 

2)FileProcess类:封装文件处理,包括读取地铁信息文件,将Core类计算结果写入文件等。

3、    测试

Gitignore:包括.idea文件夹、doc/(本地文档)等

.vs

*/Debug

*/Release

*/x64

x64

Debug

Release

bin/

out/

.gitlab-ci.yml

subway-java.iml

doc/

.idea/

 

测试用例:

包括正面测试用例:

测试Core类的loadMap:加载地图数据。

@Test
public void loadMap()

 

测试Core类的getStation:测试线路站点。

@Test
public void getStations()

 

测试Core类的getShortPath:测试最优路径。

@Test
public void getShortPath()

 

Guess you like

Origin www.cnblogs.com/Liaoxueh/p/11246631.html