<?xml version="1.0" encoding="UTF-8"?>
<program xmlns="http://www.nomoseed.org/program" name="conditioning">
  <header xmlns="http://www.nomoseed.org/project">
    <author/>
    <copyright>
      <mention xml:lang="en"/>
    </copyright>
    <license name="">
      <mention xml:lang="en"/>
    </license>
    <datetime>2014-07-08T15:44:47Z</datetime>
    <version>0.0</version>
    <annotation>
      <documentation xml:lang="en">What is the context?</documentation>
    </annotation>
  </header>
  <body>
    <models xmlns:xi="http://www.w3.org/2001/XInclude">
      <new instance="body">
        <xi:include href="body.mod" parse="xml"/>
      </new>
      <new instance="reaction">
        <xi:include href="reaction.mod" parse="xml"/>
      </new>
      <new instance="conditioning">
        <xi:include href="conditioning.mod" parse="xml"/>
      </new>
    </models>
    <scheme>
      <rule name="cancel">
        <premise model="plant" category="anomaly" type="anomaly">
          <information tolerance="INF"/>
          <credibility tolerance="INF"/>
          <timespan value="0" tolerance="0"/>
        </premise>
        <premise model="conditioning" category="conception" type="plant">
          <information tolerance="INF"/>
          <credibility tolerance="INF"/>            
          <timespan value="-1" tolerance="INF"/>
        </premise>
        <conclusion model="conditioning" category="conception" type="plant">
          <information value="predictive_structure"/>
        </conclusion>
      </rule>
      <scheme name="building_of_predictive_structure">
        <rule name="start_building_of_predictive_structure">
          <premise model="body" category="perception" type="hue">
            <information value="red" tolerance="0"/>
            <credibility value="1" tolerance="INF"/>
            <timespan value="0" tolerance="0"/>
          </premise>
          <premise model="reaction" category="conception" type="reaction" inhibitor="true">
            <information value="reaction_conditional" tolerance="INF"/>
            <credibility tolerance="INF"/>
            <timespan value="MIN" tolerance="INF"/>
          </premise>
          <conclusion model="conditioning" category="conception" type="plant">
            <information value="predictive_structure" delay="23"/>
          </conclusion>
        </rule>
        <rule name="scope_hue_conditional">
          <premise model="body" category="perception" type="hue" inhibitor="true">
            <information value="red" tolerance="0"/>
            <credibility tolerance="INF"/>
            <timespan value="0" tolerance="0"/>
          </premise>
          <premise model="reaction" category="conception" type="reaction" inhibitor="true">
            <information tolerance="INF"/>
            <credibility tolerance="INF"/>
            <timespan value="-1" tolerance="INF"/>
          </premise>
          <premise model="conditioning" category="conception" type="plant" inhibitor="true">
            <information tolerance="INF"/>
            <credibility tolerance="INF"/>            
            <timespan value="-1" tolerance="INF"/>
          </premise>
          <conclusion model="body" category="scope" type="register_01">
            <information value="hue"/>
          </conclusion>
        </rule>
        <rule name="scope_hue_inconditionnal">
          <premise model="body" category="perception" type="hue" inhibitor="true">
            <information value="red" tolerance="0"/>
            <credibility tolerance="INF"/>
            <timespan value="0" tolerance="0"/>
          </premise>
          <premise model="reaction" category="conception" type="reaction" inhibitor="true">
            <information tolerance="INF"/>
            <credibility tolerance="INF"/>
            <timespan value="-1" tolerance="INF"/>
          </premise>
          <premise model="conditioning" category="conception" type="plant" inhibitor="true">
            <information tolerance="INF"/>
            <credibility tolerance="INF"/>            
            <timespan value="-1" tolerance="INF"/>
          </premise>
          <conclusion model="body" category="scope" type="register_02">
            <information value="hue"/>
          </conclusion>
        </rule>
        <scheme name="predictive_structure_first_phase">
        </scheme>
        <scheme name="predictive_structure_second_phase">
        </scheme>
      </scheme>
    </scheme>
  </body>
</program>
