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.ui;
7  
8 import elevatorcurs.model.*;
9  
10 /**
11  *
12  * @author Mihai Hulea mihai.hulea@aut.utcluj.ro
13  */
14 public class ElevatorMVCController {
15     Elevator e;
16     ElevatorUI ui;
17     Controller c;
18  
19     public ElevatorMVCController(Elevator e, ElevatorUI ui, Controller c) {
20         this.e = e;
21         this.ui = ui;  
22         this.c = c;
23         e.addObserver(ui);
24         ui.initControler(this);
25         ui.setVisible(true);
26     }
27  
28     void executeFloorCommand(int i){
29         c.addJob(new Job(i));
30     }
31  
32 }