// WARNING: This file is auto-generated and any changes to it will be overwritten import lang.stride.*; import java.util.*; import greenfoot.*; /** * Die Uebungen (mit Loesungen) zu diesem Szenario finden Sie hier: * http://www.informatikzentrale.de/uebungen-foreach-schleife-greenfoot-3.html */ public class Heizung extends Actor { private int temperatur; private String standort; /** * */ public Heizung(int temperatur, String standort) { this.temperatur = temperatur; this.standort = standort; } /** * Act - do whatever the Heizung wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { } /** * */ public boolean temperaturIstAufNull() { if (this.temperatur == 0) { return true; } return false; } /** * */ public void setTemperatur(int temperatur) { this.temperatur = temperatur; } /** * */ public int getTemperatur() { return this.temperatur; } /** * */ public String getStandort() { return this.standort; } }