Biblioteca Java - Blame information for rev 4

Subversion Repositories:
Rev:
Rev Author Line No. Line
4 mihai 1  
2 package oop.senzor;
3  
4 public class Controler {
5  
6     static final int V = 20;
7  
8     Senzor s;
9     Compresor c;
10  
11     Controler(Senzor s, Compresor c){
12         this.s = s;
13         this.c = c;
14     }
15  
16     void control(){
17         if(s.valoare>V)
18             c.pornesteCompresor();
19         else
20            c.opresteCompresor();
21     }
22 }