<?xml version="1.0" encoding="UTF-8"?>
<class name="Heizung" extends="Actor" extends-java="Actor" enable="true" strideversion="1">
    <javadoc xml:space="preserve">Die Uebungen (mit Loesungen) zu diesem Szenario finden Sie hier:
http://www.informatikzentrale.de/uebungen-foreach-schleife-greenfoot-3.html</javadoc>
    <imports>
        <import target="java.util.*" enable="true"/>
        <import target="greenfoot.*" enable="true"/>
    </imports>
    <implements/>
    <fields>
        <variable access="private" type="int" type-java="int" name="temperatur" enable="true"/>
        <variable access="private" type="String" type-java="String" name="standort" enable="true"/>
    </fields>
    <constructors>
        <constructor access="public" enable="true">
            <javadoc xml:space="preserve"/>
            <params>
                <param type="int" type-java="int" name="temperatur"/>
                <param type="String" type-java="String" name="standort"/>
            </params>
            <throws/>
            <body>
                <assign dest="this.temperatur" dest-java="this.temperatur" src="temperatur" src-java="temperatur" enable="true"/>
                <assign dest="this.standort" dest-java="this.standort" src="standort" src-java="standort" enable="true"/>
            </body>
        </constructor>
    </constructors>
    <methods>
        <method access="public" type="void" type-java="void" name="act" enable="true">
            <javadoc xml:space="preserve">Act - do whatever the Heizung wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.</javadoc>
            <params/>
            <throws/>
            <body/>
        </method>
        <method access="public" type="boolean" type-java="boolean" name="temperaturIstAufNull" enable="true">
            <javadoc xml:space="preserve"/>
            <params/>
            <throws/>
            <body>
                <if condition="this.temperatur==0" condition-java="this.temperatur == 0" enable="true">
                    <ifStatements>
                        <return value="true" value-java="true" enable="true"/>
                    </ifStatements>
                </if>
                <return value="false" value-java="false" enable="true"/>
            </body>
        </method>
        <method access="public" type="void" type-java="void" name="setTemperatur" enable="true">
            <javadoc xml:space="preserve"/>
            <params>
                <param type="int" type-java="int" name="temperatur"/>
            </params>
            <throws/>
            <body>
                <assign dest="this.temperatur" dest-java="this.temperatur" src="temperatur" src-java="temperatur" enable="true"/>
            </body>
        </method>
        <method access="public" type="int" type-java="int" name="getTemperatur" enable="true">
            <javadoc xml:space="preserve"/>
            <params/>
            <throws/>
            <body>
                <return value="this.temperatur" value-java="this.temperatur" enable="true"/>
            </body>
        </method>
        <method access="public" type="String" type-java="String" name="getStandort" enable="true">
            <javadoc xml:space="preserve"/>
            <params/>
            <throws/>
            <body>
                <return value="this.standort" value-java="this.standort" enable="true"/>
            </body>
        </method>
    </methods>
</class>
