Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SBC Plantas WinProlog

461 views

Published on

Published in: Business, Technology
  • Be the first to comment

  • Be the first to like this

SBC Plantas WinProlog

  1. 1. frame plantas ; default vida is si and default cual_es is no_se . frame terrestres is a plantas ; default desarrollo is aire_lbre and default hojas is si . frame acuaticas is a plantas ; default desarrollo is agua and default hojas is si . /*terrestres*/ frame plantas_con_flor is a terrestres ; default nombre_cientifico is fanerogamas and default necesita_agua is si . frame plantas_sin_flor is a terrestres ; default nombre_cientifico is criptogamas and default organo_reproductor is esporas . /*plantas_con_flor*/ frame gimnospermas is a plantas_con_flor ; default flores is simples and default uso is inadvertido . frame angiosperma is a plantas_con_flor ; default flores is complejas and default uso is materia_Prima . /*gimnospermas*/ frame cicadopsida is a gimnospermas ; default division is coniferophyta and default tallo is carnosos . frame coniferopsida is a gimnospermas ; default division is pinophyta and default origen is paleozoico . /*angiosperma*/ frame magnoliopsidas is a angiosperma ; default polen is tricolpado and default hojas is nerviadas .
  2. 2. frame liliopsidas is a angiosperma ; default polen is monocoplado and default hojas is parlelinervias . /*plantas_sin_flor*/ frame musgos is a plantas_con_flor ; default formacion_protalo is no and default viven is zona_humeda_y_sombria . frame helechos is a plantas_con_flor ; default formacion_protalo is si and default viven is zona_humeda_y_frecas . /*musgos*/ frame antocerotes is a gimnospermas ; default tama?o is cm10 and default especie is monoica . frame bryophyta is a gimnospermas ; default tama?o is cm60 and default cubierto is caliptra . /*helechos*/ frame nido_de_ave is a angiosperma ; default nombre_cientifico is asplenium_nidus and default tolera_luz is no . frame blecno is a angiosperma ; default nombre_cientifico is blechnum_gibbum and default tolera_luz is si . /*acuaticas*/ frame sumergidas is a acuaticas ; default funcion is oxigena_Agua and default desarrollo is bajo_agua . frame flotantes is a acuaticas ; default funcion is evita_algas and default familia is azollaceae . /*sumergidas*/ frame violeta_de_agua is a sumergidas ;
  3. 3. default nombre_cientifico is hottonia_palustris and default familia is primulaceae . frame milhojas_acuaticas is a sumergidas ; default nombre_cientifico is myriophyllum and default familia is haloragaceae . /*flotantes*/ frame jacinto_de_agua is a flotantes ; default origen is america_del_sur and default exposicion is pleno_sol . frame lentejas_de_agua is a flotantes ; default origen is europa and default exposicion is media_sombra . /*lentejas_de_agua*/ frame lemna_trisulca is a lentejas_de_agua ; default familia is lemnaceae and default tama?o is mm10 . frame lemna_Gibba is a lentejas_de_agua ; default tama?o is mm5 and default habitad is templado . /*Preguntas*/ question p1 Esta planta se desarrolla en: ; choose from aire_libre, agua . question p2 Su nombre cientifico es: ; choose from fanerogamas, criptogamas . question p3 La formacion de la flor es: ; choose from simples, complejas . question p4 La division a la que pertenece es: ; choose from coniferophyta, pinophyta .
  4. 4. question p5 el polen es ; choose from tricolpado, monocoplado . question p6 contiene formaion de protalo ; choose from no, si . question p7 su tama?o es de ; choose from cm10, cm60 . question p8 ?tolera la Luz? ; choose from no, si . question p9 Cual es su funcion principal ; choose from oxigena_Agua, evita_algas . question p10 Pertenece a la familia ; choose from primulaceae, haloragaceae . question p11 proviene de ; choose from america_del_sur, europa . question p12 su tama?o aproximado es de: ; choose from mm10, mm5 . /*reglas*/ rule r2 if the p1 is aire_libre and the p2 is fanerogamas and the p3 is simples and the p4 is coniferophyta then the plantas`s cual_es becomes cicadopsida . rule r3 if the p1 is aire_libre and the p2 is fanerogamas and the p3 is simples
  5. 5. and the p4 is pinophyta then the plantas`s cual_es becomes coniferopsida . rule r4 if the p1 is aire_libre and the p2 is fanerogamas and the p3 is complejas and the p5 is tricolpado then the plantas`s cual_es becomes magnoliopsidas . rule r5 if the p1 is aire_libre and the p2 is fanerogamas and the p3 is complejas and the p5 is monocoplado then the plantas`s cual_es becomes liliopsidas . rule r6 if the p1 is aire_libre and the p2 is criptogamas and the p6 is no and the p7 is cm10 then the plantas`s cual_es becomes antocerotes . rule r7 if the p1 is aire_libre and the p2 is criptogamas and the p6 is no and the p7 is cm60 then the plantas`s cual_es becomes bryophyta . rule r8 if the p1 is aire_libre and the p2 is criptogamas and the p6 is si and the p8 is no then the plantas`s cual_es becomes nido_de_ave . rule r9 if the p1 is aire_libre and the p2 is criptogamas and the p6 is si and the p8 is si then the plantas`s cual_es becomes blecno . rule r10 if the p1 is agua
  6. 6. and the p9 is oxigena_Agua and the p10 is primulaceae then the plantas`s cual_es becomes violeta_de_agua . rule r11 if the p1 is agua and the p9 is oxigena_Agua and the p10 is haloragaceae then the plantas`s cual_es becomes milhojas_acuatica . rule r12 if the p1 is agua and the p9 is evita_algas and the p11 is america_del_sur then the plantas`s cual_es becomes jacinto_de_agua . rule r13 if the p1 is agua and the p9 is evita_algas and the p11 is europa and the p12 is mm10 then the plantas`s cual_es becomes lemna_trisulca . rule r14 if the p1 is agua and the p9 is evita_algas and the p11 is europa and the p12 is mm5 then the plantas`s cual_es becomes lemna_Gibba . group g1 r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14 . ruleset rset1 contains g1 ; update ruleset by removing each selected rule . action run ; do restart and invoke ruleset rset1 and echo ('la planta que busca es a una:', plantas`s cual_es) and nl .

×