Biblioteca Java - Rev 4
Subversion Repositories:
package oop.senzor;
public class Controler {
static final int V = 20;
Senzor s;
Compresor c;
Controler(Senzor s, Compresor c){
this.s = s;
this.c = c;
}
void control(){
if(s.valoare>V)
c.pornesteCompresor();
else
c.opresteCompresor();
}
}