First of all, talk about IntelliJ idea and git interconnection, first in any (I was in coding) Gitlab a new project.
Then create a new project Remember to specify the URL and address, name, etc.
If you cannot create it, you need to specify a git address
Once you've created your project as a git directory, you'll be able to use the GIT functionality of idea, with add and push points on the line.
Next before the play before the BB two words, last week, I experienced the most serious illness since the university (in fact, is a bad cold), very uncomfortable, and then the disease just Ching Ming holiday and cycling to die, and finally led to this assignment did not complete.
(All the reasons are nonsense) so, in fact, there is no reason, the dish is the dish, the dish of the pin I did not complete the swing GUI, and did not fully realize the job requirements.
Send two pictures to mourn.
At the same time, because the console is difficult to express the multi-threaded elevator control, I hand-draw the bug a lot of multi-threaded part of the whole delete (note is a good habit, do not hurry to delete, first comment out)
In the end, it only retains the complete elevator class (the main content bar) and a main class that is driven out. And I imagined too much, in short, after this blog post, I still continue to complete my swing and multi-threading.
Just put a code on it.
Public classelevator{Private intMaxC; Private intMaxp; Public inttargetfloor[]; Public intNowfloor; BooleanSingle,double,run,up,down; Public voidSetelevator (intMAXC,intMAXP,intSET)//Initialize the elevator Public voidInputfloor (intFnum)//Enter Floor voidUpordown ()//To decide whether to go up or down Public voidElevatorrun ()//Elevator Operation Public BooleanElestop ()//judge whether to stop; Public BooleanFloorstop (intFloor//single double-decker stop Public voidShowelestate ()//Status View for console use only}Elevator
Detailed implementation of all folds, swing that a wide range of statements and use is not completed and not released. Ignore these, in short, the algorithm thought feels a bit troublesome point.
Still don't have to send a statement to spit the trough:
Public classElvator {PrivateJPanel Floorslect; PrivateJcheckbox CB1; PrivateJcheckbox CB2; PrivateJcheckbox CB3; PrivateJcheckbox CB4; PrivateJcheckbox CB5; PrivateJcheckbox CB6; PrivateJcheckbox CB7; PrivateJcheckbox CB8; PrivateJcheckbox CB9; PrivateJcheckbox CB10; PrivateJcheckbox CB11; PrivateJcheckbox CB12; PrivateJcheckbox CB13; PrivateJcheckbox CB14; PrivateJcheckbox CB15; PrivateJcheckbox CB16; PrivateJcheckbox CB17; PrivateJcheckbox CB18; PrivateJcheckbox CB19; PrivateJcheckbox CB20; PrivateJcheckbox CB0; PrivateJButton START; PrivateJTextField NOWF; PrivateJradiobutton UPL; PrivateJradiobutton downl; PrivateJPanel ELE; PrivateJPanel Cheak; PrivateJPanel ST; PrivateJTextField Eletext; PrivateButtongroup Group; Private intMaxC; Private intMaxp; Public inttargetfloor[]; Public intNowfloor; BooleanSingle,double,run,up,down;/*Split*/ Public classElevat {PrivateJPanel build; PrivateJPanel E1; PrivateJPanel E3; PrivateJPanel E4; PrivateJPanel E2; PrivateJradiobutton UP1; PrivateJradiobutton DOWN1; PrivateJradiobutton STOP1; PrivateJradiobutton UP2; PrivateJradiobutton STOP2; PrivateJradiobutton DOWN2; PrivateJradiobutton UP3; PrivateJradiobutton STOP3; PrivateJradiobutton DOWN3; PrivateJradiobutton UP4; PrivateJradiobutton STOP4; PrivateJradiobutton DOWN4; PrivateJComboBox Floors; PrivateJPanel Floorcheak; PrivateJradiobutton Elevatorat; PrivateJcheckbox buup; PrivateJcheckbox Budown; PrivateJTextField textNowF1; PrivateJTextField textNowF2; PrivateJTextField textNowF3; PrivateJPanel NowF2; PrivateJPanel BuF2; PrivateJPanel NowF1; PrivateJPanel BuF1; PrivateJPanel BuF3; PrivateJPanel NowF3; PrivateJPanel BuF4; PrivateJPanel Llo; PrivateJTextField textE4; PrivateButtongroup Bg1,bg2,bg3,bg4; PublicElvator Ell,elh,els,eld;Swing Statement
Then is the earnest summary:
This elevator operation, at first glance quite simple, actually also quite complex, consider the real environment elevator use, should make each elevator independent operation, at the same time by this building interconnected together, then need multi-threading to achieve some synchronous operation. At the same time, these in the console want to show a little more complex, then need GUI.
This is my first time to touch Java, the reason for using Java is a recent groping Android development, the head of a hot use. the first contact with multi-threading, the use of a variety of not too familiar with the cause of a lot of bugs, and finally to hand over the job to delete all.
For the first time try a double partner (but not yet)
Finally, it suddenly occurred to me that this was a two-person project.
I seem to have forgotten my partner,!!!!!!. Seems to have forgotten to take pictures, too!!!!! Partner Poke this: Http://www.cnblogs.com/wangyipp
Although want to spit Groove This group, or forget, their dishes can also blame teammates strange group? Really dish of the foot, after the blog, continue to fill the homework to
By: Doublex_xxjkdtx of the dish's foot
For the first time in my life Java programming, elevators (not finished), and idea using Git