codigo_animal
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

codigo_animal

on

  • 538 views

codigo_animal

codigo_animal

Statistics

Views

Total Views
538
Views on SlideShare
538
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

codigo_animal Document Transcript

  • 1. frame animales ; default respira is si and default sangre is si and default quien_es is 'desconocido' . frame animales_salvajes is a animales ; default agresividad is alta and default viven is en_su_habitat_natural . frame animales_domesticos is a animales; default agresividad is moderada and default viven is con-el_hombre . frame animales_selvaticos is a animales_salvajes; default habitad is selva and default deshidratacion is poca . frame animales_deserticos is a animales_selvaticos; default habitad is desierto and default deshidratacion is constante . frame animales_para_el_consumo is a animales_domesticos; default carne_comestible is si and default gordura is alta . frame animales_de_compa?ia is a animales_domesticos; default carne_comestible is no and default gordura is media . frame animal_de_orden_carnivoro is a animales_selvaticos; default alimentacion is carne and default mandibulas is poderosas . frame animal_de_orden_insectivoro is a animales_selvaticos; default alimentacion is insectas and default mandibulas is poco_poderosas . frame animales_de_sangre_caliente is a animales_desierticoss; default recubrimiento is pelos and default calor is generado_por_procesos_internos .
  • 2. frame animales_de_sangre_fria is a animales_desierticoss; default recubrimiento is escamas and default calor is fuentes_externas . frame animal_con_cuernos is a animales_para_el_consumo; default cuernos is si and default leche_consumible is si . frame animal_sin_cuernos is a animales_para_el_consumo; default cuernos is no and default leche_consumible is no . frame animal_sin_carnivoro is a animales_de_compa?ia; default alimentacion is carne and default consumidores is secundarios . frame animal_herviboro is a animales_de_compa?ia; default alimentacion is hierba and default consumidores is primarios . frame tigre is a animal_de_orden_carnivoro; default familia is felina and default piel_rayada is si . frame zorro is a animal_de_orden_carnivoro; default familia is caninos and default piel_rayada is no . frame camaleon is a animal_de_orden_insectivoro; default cola is si and default cambia_de_color is si . frame rana is a animal_de_orden_insectivoro; default cola is si
  • 3. and default cambia_de_color is no . frame ara?a is a animal_de_sangre_caliente ; default veneno is si and default num_patas is num8 . frame coyote is a animal_de_sangre_caliente ; default veneno is no and default num_patas is num4 . frame lagarto_de_cola_espinosa is a animal_de_sangre_fria ; default patas is si and default puas is si . frame cobra is a animal_de_sangre_fria ; default patas is no and default puas is no . frame cabra_domestica is a animal_con_cuernos ; default recubrimiento is lana and default cola is corta . frame vaca is a animal_con_cuernos ; default recubrimiento is pelo and default cola is larga . frame gallina is a animal_sin_cuernos ; default alas is si and default pesu?as is no . frame cerdo is a animal_sin_cuernos ; default alas is no and default pesu?as is si . frame gato is a animal_carnivoro ; default familia is felinos
  • 4. and default unas_retractiles is si . frame perro is a animal_carnivoro ; default familia is caninos and default unas_retractiles is no . frame burro is a animal_herbivoro ; default utilizacion_frecuente is carga and default orejas is largas . frame caballo is a animal_herbivoro ; default utilizacion_frecuente is carreras and default orejas is cortas . question sangre '?tiene sangre?' ; choose one of si, no . question vive '?viven en?' ; choose one of en_su_habitad_natural, con_el_hombre . question deshidratacion '?Tipo de Deshidrataci?n?' ; choose one of poca, constante . question gordura '?Tipo de Gordura?' ; choose one of alta, media . question mandibula '?Tipo de Mandibulas?' ; choose one of poderosas, poco_poderosas .
  • 5. question calor '?Tipo de Calor?' ; choose one of generado_por_procesos_internos, fuentes_externas . question leche_consumible '?Tipo de leche?' ; choose one of si, no . question consumidores '?Tipo de Consumidores?' ; choose one of secundarios, primarios . question piel_rayada '?Tiene la piel rayada?' ; choose one of si, no . question cambio_de_color '?Tipo de cambio de color?' ; choose one of si, no . question numero_de_patas '?numero de patas que posee?' ; choose one of num8, num4 . question puas '?Posee puas?' ; choose one of si, no . question cola '?Posee cola?' ; choose one of corta, larga . question pesu?as '?Posee pesu?as?' ; choose one of no, si . question orejas '?Tipo de orejas?' ;
  • 6. choose one of largas, cortas . question unas_retractiles '?Tipo u?as retractiles?' ; choose one of si, no . rule r1 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is poca and the mandibula is poderosas and the piel_rayada is si then the animales`s quien_es becomes tigre . rule r2 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is poca and the mandibula is poderosas and the piel_rayada is no then the animales`s quien_es becomes zorro . rule r3 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is poca and the mandibula is poco_poderosas and the cambio_de_color is si then the animales`s quien_es becomes camaleon . rule r4 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is poca and the mandibula is poco_poderosas and the cambio_de_color is no then the animales`s quien_es becomes rana . rule r5 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is constante and the calor is generado_por_procesos_internos
  • 7. and the numero_de_patas is num8 then the animales`s quien_es becomes ara?a . rule r6 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is constante and the calor is generado_por_procesos_internos and the numero_de_patas is num4 then the animales`s quien_es becomes coyote . rule r7 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is constante and the calor is fuentes_externas and the puas is si then the animales`s quien_es becomes lagarto_de_cola_espinosa . rule r8 if the sangre is si and the vive is en_su_habitad_natural and the deshidratacion is constante and the calor is fuentes_externas and the puas is no then the animales`s quien_es becomes cobra . rule r9 if the sangre is si and the vive is con_el_hombre and the gordura is alta and the leche_consumible is si and the cola is corta then the animales`s quien_es becomes cabra_domestica . rule r10 if the sangre is si and the vive is con_el_hombre and the gordura is alta and the leche_consumible is si and the cola is larga then the animales`s quien_es becomes vaca . rule r11 if the sangre is si
  • 8. and the vive is con_el_hombre and the gordura is alta and the leche_consumible is no and the pesu?as is no then the animales`s quien_es becomes gallina . rule r12 if the sangre is si and the vive is con_el_hombre and the gordura is alta and the leche_consumible is no and the pesu?as is si then the animales`s quien_es becomes cerdo . rule r13 if the sangre is si and the vive is con_el_hombre and the gordura is media and the consumidores is secundarios and the unas_retractiles is si then the animales`s quien_es becomes gato . rule r14 if the sangre is si and the vive is con_el_hombre and the gordura is media and the consumidores is secundarios and the unas_retractiles is no then the animales`s quien_es becomes perro . rule r15 if the sangre is si and the vive is con_el_hombre and the gordura is media and the consumidores is primarios and the orejas is largas then the animales`s quien_es becomes burro . rule r16 if the sangre is si and the vive is con_el_hombre and the gordura is media and the consumidores is primarios and the orejas is cortas then the animales`s quien_es becomes caballo .
  • 9. group g1 r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16 . ruleset ru1 contains g1 ; update ruleset by removing each selected rule . action terminar ; do restart and invoke ruleset ru1 and echo ('El animal que buscas es:', animales`s quien_es) and nl .