You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
595 B
28 lines
595 B
package model;
|
|
|
|
import javafx.beans.property.Property;
|
|
import javafx.beans.property.StringProperty;
|
|
|
|
public class UnitCapteur extends CapteurAbstrait{
|
|
private StrategyCaptor strategie;
|
|
|
|
public UnitCapteur(Property<String> id, StringProperty nom, StrategyCaptor st) {
|
|
super(id, nom);
|
|
this.strategie = st;
|
|
}
|
|
|
|
@Override
|
|
public void genTemp() {
|
|
this.setTemp(strategie.genTemp());
|
|
}
|
|
|
|
@Override
|
|
public <T> T accept(Visitor<T> v) {
|
|
return v.visit(this);
|
|
}
|
|
|
|
public StrategyCaptor getStrategie() {
|
|
return strategie;
|
|
}
|
|
}
|