Biblioteca Java - Blame information for rev 32

Subversion Repositories:
Rev:
Rev Author Line No. Line
32 mihai 1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package elevatorcurs;
7  
8 import elevatorcurs.model.*;
9  
10 /**
11  *
12  * @author Mihai Hulea mihai.hulea@aut.utcluj.ro
13  */
14 public class ElevatorCurs {
15  
16     /**
17      * @param args the command line arguments
18      */
19     public static void main(String[] args) {
20         Elevator e1 = new Elevator();
21         e1.setCurrentDir(Direction.UP);
22          System.out.println(e1);
23         for (int i = 0; i < 5; i++) {
24             e1.move();
25             System.out.println(e1);
26         }
27  
28         e1.setCurrentDir(Direction.DOWN);
29         for (int i = 0; i < 5; i++) {
30             e1.move();
31             System.out.println(e1);
32         }
33  
34         e1.setCurrentDir(Direction.HOLD);
35  
36         for (int i = 0; i < 5; i++) {
37             e1.move();
38             System.out.println(e1);
39         }
40  
41  
42         ///////////////
43  
44         Controller c = new Controller(e1);
45         Simulator s = new Simulator(c, e1);
46         c.addJob(new Job(2));
47         c.addJob(new Job(1));
48         s.simulate();
49  
50  
51     }
52  
53 }