Second OO summary

The second summary contains three jobs, multithreaded elevator, ifttt and taxi system

 

1. Multi-thread elevator

I didn't write well for this multi-threaded assignment. The program's executable is too low. When there are too many test codes, there will be errors, and the debugging will not be completed in the end. Analyzing the reason, I think that I started coding before I was familiar with the instruction book. Although it seemed like I started the task early, I actually paid attention to one and the other, and difficulties followed one after another. After I finished writing, I found that there were too many problems that I had not considered. Looking back on the first elevator and the second elevator, although I didn't finish my homework very quickly, the program was basically correct after I finished it. If you want to do a good job, you must first sharpen your tools. It's a pity that this homework has turned the cart before the horse. It's a pity.

 

First, the class diagram, the class diagram is relatively mediocre and average, neither good nor bad.

 

Then there is the timing diagram, which is the timing representation of the cooperative relationship between the various classes.

 

 

 

 

 

 

 

 

 

Two, iftty

 

This time the file operation job can be said to be very interesting, and the workload far exceeds the actual time required. Although he thought he was ready to start early, he was actually lax and overestimated his own strength. To be honest, I think this requirement of the course group is simply unreasonable, and this time the homework should not be given only for one week. This is not a simple complaint. The difficulty of the homework should be moderately high to be reasonable. But this time, the homework did not go to the village or the store, and it was given for one week in isolation. This is because the course team thought that one week was enough. Judging from the feedback from classmates and even the teaching assistant, one week of homework this time was not enough, which led to some people deducting points like crazy for each other's tests, which did not achieve the meaning of learning at all.

 

 

 

 

 

 

 

3. Taxi system

 

Taxi should be one of my three homework assignments that I wrote better, and in this homework, I realized the operation of fake time. At first, I felt that the other party was cheating. Later, after asking the teaching assistant, I found this This behavior is actually feasible. . . Well, this also taught me a method. After all, the two bugs that were picked up in this assignment were all because the error would reach 0.1s after a long run, resulting in problems with the program results.

 

 

During debugging, it was found that the gui package will cause the program to slow down, but the convenience it brings is immeasurable.

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325225780&siteId=291194637