frame cosas ;
default vida is no
and default que_es is 'desconocida' .
frame medio_transporte is a cosas ;
default funcion is transportar
and default medio is movil .
frame medio_comunicacion is a cosas ;
default funcion is comunicar
and default medio is sensorial .
frame trans_terrestre is a medio_transporte ;
default modalidad is terrestre
and default tecnologia is ruedas .
frame trans_acuatico is a medio_transporte ;
default modalidad is acuatico
and default tecnologia is propela .
frame trans_aereo is a medio_transporte ;
default modalidad is aereo
and default tecnologia is helices .
frame radio is a medio_comunicacion ;
default modo_persuasion is auditivo
and default tecnologia is 'ondas electromagneticas' .
frame periodico is a medio_comunicacion ;
default modo_persuasion is visual
and default tecnologia is imprenta .
frame television is a medio_comunicacion ;
default modo_persuasion is 'audio-visual'
and default tecnologia is 'tubo de rayos catodicos' .
frame bicicleta is a trans_terrestre ;
default num_ruedas is num2
and default costo is bajo .
frame automovil is a trans_terrestre ;
default num_ruedas is num4
and default costo is alto .
frame motos_acuatica is a trans_acuatico ;
default tipo_embarcacion is ligera
and default num_ocupantes is '2' .
frame barcos is a trans_acuatico ;
default tipo_embarcacion is pesada
and default num_ocupantes is '>10' .
frame helicoptero is a trans_aereo ;
default maniobrabilidad is alta
and default capacidad_carga is baja .
frame avion is a trans_aereo ;
default maniobrabilidad is baja
and default capacidad_carga is alta .
frame radio_am is a radio ;
default disponibilidad_banda is baja
and default tecnologia is 'amplitud modulada de la onda' .
frame radio_fm is a radio ;
default disponibilidad_banda is media
and default tecnologia is 'variacion de la frecuencia' .
frame periodico_impreso is a periodico ;
default modo is impreso
and default costo is bajo .
frame periodico_digital is a periodico ;
default modo is digital
and default costo is medio .
frame autom_deportivo is a automovil ;
default tipo is deportivo
and default modelo is convertible .
frame autom_familiar is a automovil ;
default tipo is familiar
and default modelo is '4x4' .
frame crucero is a barcos ;
default longitud is '>100 metros'
and default peso is '10.000 toneladas' .
frame yate is a barcos ;
default longitud is '<100 metros'
and default peso is '2.000 toneladas' .
frame av_comercial is a avion ;
default tipo is comercial
and default transporta is 'pasajeros y carga' .
frame av_caza is a avion ;
default tipo is guerra
and default transporta is 'arsenal militar' .
question tiene_vida
'?tiene vida?' ;
choose one of si, no .
question funcion_medio
'?funcion que cumple?' ;
choose one of transportar, comunicar .
question tipo_modalidad
'?que tipo de modalidad cumple?' ;
choose one of terrestre, acuatico, aereo .
question persuasion
'?de que forma persuade?' ;
choose one of auditivo, visual, 'audio-visual' .
question ruedas
'?cuantas ruedas tiene?' ;
choose one of num2, num4 .
question embarcacion
'?tipo de embarcacion?' ;
choose one of ligera, pesada .
question carga
'?su capacidad de carga es?' ;
choose one of baja, alta .
question banda
'?la disponibilidad de la banda es?' ;
choose one of baja, media .
question modo_periodico
'?modo que usa?' ;
choose one of impreso, digital .
question tipo_automovil
'?tipo de automovil?' ;
choose one of deportivo, familiar .
question cant_longitud
'?cual es su longitud?' ;
choose one of '>100 metros', '<100 metros' .
question tipo_avion
'?tipo de avion?' ;
choose one of comercial, guerra .
rule r1
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is terrestre
and the ruedas is num2
then the cosas`s que_es becomes bicicleta .
rule r2
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is terrestre
and the ruedas is num4
and the tipo_automovil is deportivo
then the cosas`s que_es becomes autom_deportivo .
rule r3
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is terrestre
and the ruedas is num4
and the tipo_automovil is familiar
then the cosas`s que_es becomes autom_familiar .
rule r4
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is acuatico
and the embarcacion is ligera
then the cosas`s que_es becomes motos_acuatica .
rule r5
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is acuatico
and the embarcacion is pesada
and the cant_longitud is '>100 metros'
then the cosas`s que_es becomes crucero .
rule r6
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is acuatico
and the embarcacion is pesada
and the cant_longitud is '<100 metros'
then the cosas`s que_es becomes yate .
rule r7
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is aereo
and the carga is baja
then the cosas`s que_es becomes helicoptero .
rule r8
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is aereo
and the carga is alta
and the tipo_avion is comercial
then the cosas`s que_es becomes av_comercial .
rule r9
if the tiene_vida is no
and the funcion_medio is transportar
and the tipo_modalidad is aereo
and the carga is alta
and the tipo_avion is guerra
then the cosas`s que_es becomes av_caza .
rule r10
if the tiene_vida is no
and the funcion_medio is comunicar
and the persuasion is auditivo
and the banda is baja
then the cosas`s que_es becomes radio_am .
rule r11
if the tiene_vida is no
and the funcion_medio is comunicar
and the persuasion is auditivo
and the banda is media
then the cosas`s que_es becomes radio_fm .
rule r12
if the tiene_vida is no
and the funcion_medio is comunicar
and the persuasion is visual
and the modo_periodico is impreso
then the cosas`s que_es becomes periodico_impreso .
rule r13
if the tiene_vida is no
and the funcion_medio is comunicar
and the persuasion is visual
and the modo_periodico is digital
then the cosas`s que_es becomes periodico_digital .
rule r14
if the tiene_vida is no
and the funcion_medio is comunicar
and the persuasion is 'audio-visual'
then the cosas`s que_es becomes television .
group g1
r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14 .
ruleset ru1
contains g1 ;
update ruleset by removing each selected rule .
action terminar ;
do restart
and invoke ruleset ru1
and echo ('la cosa que buscas es:', cosas`s que_es)
and nl .
0 comments
Post a comment