<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE contexts SYSTEM "context.dtd">
<contexts>
  <!-- Definition of comparisons and logicrealtions -->
  <definitions>
    <comparison operator="lower"/>
    <comparison operator="greater"/>
    <comparison operator="equals"/>
    <comparison operator="not equals"/>
    <comparison operator="greater equals"/>
    <comparison operator="lower equals"/>
    <logicrelation operator="and" />
    <logicrelation operator="or" />
    <valuetype name="boolean" />
    <valuetype name="date" />
    <valuetype name="nominal" />
    <valuetype name="ordinal" />
    <valuetype name="discrete" />
    <valuetype name="continous" />
  </definitions>
  
  <!-- Top context definition "cold" -->
  <context name="cold" type="atomic">
    <atomic type="sensor" >
       <sensor type="temperature" 
               comparison="lower"
       	       comparevalue="10"
	       unit="°C" 
	       valuetype="continous"/>
    </atomic>
  </context>

  <!-- Top context definition "cold" -->
  <context name="Projektraum leer" type="atomic">
    <atomic type="sensor" >
       <sensor type="brightness" 
               comparison="lower"
       	       comparevalue="1"
	       unit="lux" 
	       valuetype="continous"/>
    </atomic>
  </context>

<!--
  <context name="MZH 5380 symbol" type="atomic">
    <atomic type="location">
      <location type="symbol">
	 <symbol>
	   <city value="Bremen">
	     <area value="Lehe">
	       <building value="MZH">	       
	         <level value="5">
		   <room value="5380" />
		 </level>
	       </building>
	     </area>
	   </city>
	 </symbol>       
      </location>      
    </atomic>
  </context>


  <context name="MZH 5380 coordinates" type="atomic">
    <atomic type="location">
      <location type="coordinate">
	<coordinate latitude="53.10631"
	            longitude="8.85209"
		    elevation="0.0" />
      </location>
    </atomic>
  </context>
-->
  <!-- Top context definition "after dusk" -->
  <context name="after dusk" type="atomic">
    <atomic type="sensor" >
       <sensor type="time" 
               comparison="greater"
       	       comparevalue="29 10 2004 09:00:00"
	       unit="%e %m %Y %H:%M:%S" 
	       valuetype="continous"/>
    </atomic>
  </context>

  <context name="Start Plena 29.10." type="atomic">
    <atomic type="sensor" >
       <sensor type="time" 
               comparison="greater"
       	       comparevalue="29 10 2004 9:15:00"
	       unit="%e %m %Y %H:%M:%S" 
	       valuetype="continous"/>
    </atomic>
  </context>

  <context name="Stop Plena 29.10." type="atomic">
    <atomic type="sensor" >
       <sensor type="time" 
               comparison="greater"
       	       comparevalue="29 10 2004 10:40:00"
	       unit="%e %m %Y %H:%M:%S" 
	       valuetype="continous"/>
    </atomic>
  </context>
  
  <context name="before dawn" type="atomic">
    <atomic type="sensor">
      <sensor type="time" 
	      comparison="lower" 
	      comparevalue="29 10 2004 21:00:00" 
	      unit="%e %m %Y %H:%M:%S" 
	      valuetype="continous"/>
    </atomic>
  </context>

  <!-- Top context definition "dawn" -->
  <context name="day" type="composite">
    <composite type="logic">
      <logic logicrelation="and">
        <contextref name="after dusk" />
	<!-- Intern context declaration of a "before dawn" -->	
	<contextref name="before dawn" />
    </logic>
    </composite>
  </context>
</contexts>
