AI-ExpertSystem-Simple

 view release on metacpan or  search on metacpan

examples/Glass.xml  view on Meta::CPAN

    </condition>
    <condition>
     <attribute>geometric</attribute>
     <value>yes</value>
    </condition>
    <condition>
     <attribute>etched</attribute>
     <value>no</value>
    </condition>
   </conditions>
   <actions>
    <action>
     <attribute>type.glass</attribute>
     <value>miss.america</value>
    </action>
   </actions>
  </rule>
  <rule>
   <name>11</name>
   <conditions>
    <condition>
     <attribute>avocado</attribute>
     <value>yes</value>
    </condition>
    <condition>
     <attribute>rays</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>plain</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>etched</attribute>
     <value>no</value>
    </condition>
   </conditions>
   <actions>
    <action>
     <attribute>type.glass</attribute>
     <value>avocado</value>
    </action>
   </actions>
  </rule>
  <rule>
   <name>12</name>
   <conditions>
    <condition>
     <attribute>rays</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>plain</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>etched</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>cherry.blossom</attribute>
     <value>yes</value>
    </condition>
   </conditions>
   <actions>
    <action>
     <attribute>type.glass</attribute>
     <value>cherry.blossom</value>
    </action>
   </actions>
  </rule>
  <rule>
   <name>13</name>
   <conditions>
    <condition>
     <attribute>rays</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>plain</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>fire.king</attribute>
     <value>yes</value>
    </condition>
    <condition>
     <attribute>etched</attribute>
     <value>no</value>
    </condition>
   </conditions>
   <actions>
    <action>
     <attribute>type.glass</attribute>
     <value>fire.king.oven.glass</value>
    </action>
   </actions>
  </rule>
  <rule>
   <name>14</name>
   <conditions>
    <condition>
     <attribute>rays</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>plain</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>sharon</attribute>
     <value>yes</value>
    </condition>
    <condition>
     <attribute>etched</attribute>
     <value>no</value>
    </condition>
   </conditions>
   <actions>
    <action>
     <attribute>type.glass</attribute>
     <value>sharon(cabbage.rose)</value>
    </action>
   </actions>
  </rule>
  <rule>
   <name>15</name>
   <conditions>

examples/Glass.xml  view on Meta::CPAN

     <attribute>type.glass</attribute>
     <value>cupid</value>
    </action>
   </actions>
  </rule>
  <rule>
   <name>34</name>
   <conditions>
    <condition>
     <attribute>rose.in.emblem</attribute>
     <value>no</value>
    </condition>
    <condition>
     <attribute>emblem</attribute>
     <value>yes</value>
    </condition>
    <condition>
     <attribute>etched</attribute>
     <value>yes</value>
    </condition>
   </conditions>
   <actions>
    <action>
     <attribute>type.glass</attribute>
     <value>cherokee.rose</value>
    </action>
   </actions>
  </rule>
  <rule>
   <name>35</name>
   <conditions>
    <condition>
     <attribute>rose.in.emblem</attribute>
     <value>yes</value>
    </condition>
    <condition>
     <attribute>emblem</attribute>
     <value>yes</value>
    </condition>
    <condition>
     <attribute>etched</attribute>
     <value>yes</value>
    </condition>
   </conditions>
   <actions>
    <action>
     <attribute>type.glass</attribute>
     <value>rose.point</value>
    </action>
   </actions>
  </rule>
 </rules>
 <questions>
  <question>
   <attribute>lariat</attribute>
   <text>Does the piece have a looped rim?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>cherry.blossom</attribute>
   <text>Are there small cherries in the pattern?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>pretzel</attribute>
   <text>Does the glass have a laced pattern?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>moonstone</attribute>
   <text>Is the glass beaded with a white edge?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>fuchsia</attribute>
   <text>Are there Fuchsia, or hanging flowers with stems in them, in the glass?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>etched</attribute>
   <text>Is the glass etched? (versus pressed)</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>empress</attribute>
   <text>Does the rim look as though there are knotches?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>waterford</attribute>
   <text>Does the glass have a laced pattern?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>rays</attribute>
   <text>Are there 'rays' starting in the center of the piece moving toward the edge?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>geometric</attribute>
   <text>Is there a geometric pattern in the glass?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>fire.king</attribute>
   <text>Are flowers missing from the pattern?</text>
   <response>yes</response>
   <response>no</response>
  </question>
  <question>
   <attribute>emblem</attribute>
   <text>Does the glass bear an emblem?</text>



( run in 0.524 second using v1.01-cache-2.11-cpan-2398b32b56e )