The Artima Developer Community
Sponsored Link

Java Buzz Forum
Ahh, Rules =)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Ahh, Rules =) Posted: Sep 9, 2005 7:58 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Ahh, Rules =)
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

Gotta love trying to make up sample rules when discussing possible rule authoring options in drools...

mich__: I'm trying to imagine a scenario where a rule would be part of two groups
mich__: Two distinct groups where only one rule needs to execute
brianm: here is an example
brianm: off top of head
brianm: you have a wombat, the wombat is on fire, and cannot see
brianm: when the wombat is on fire you have options to:
brianm: rule 1) stop drop and roll
brianm: rule 2) jump in a lake
brianm: when the wombat cannot see it has options:
mich__: Obviously, it cant do both
brianm: rule 1) turn on the light
brianm: rule 2) use a torch
brianm: rules 2 are incompatible
brianm: only one can be used
proyal: if the wombat was on fire, could it not see from the light of the flames? 
brianm: proyal: hey, this is made up for example purposes =)
proyal: in your example, i would think that salience might work?
        since once the fire is put out, the 'on fire' fact would be revoked..
brianm: yeah, actually it could, being on fire is obviously much more important 
        to resolve

Read: Ahh, Rules =)

Topic: Novel Antibiotics Against Super-Bugs Previous Topic   Next Topic Topic: It Lives!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use