jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • drools-legacy
  • DROOLS-47

existential/quantity rules

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: 2.0-beta-15
  • Fix Version/s: future
  • Component/s: reteoo
  • Labels:
    None

Description

Need to support firing of rules when K objects exist, for K in { 0...n }

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Florent Lioult added a comment - 08/Jul/03 2:53 AM

How the negation will be handled ? An easy solution is to forbid negation condition as first condition or, at least, to have non negational condition in the rule. Otherwise when a rule with only negation condition will occur ? At the very begining of the working memory or after the first fact is asserted (provided the rule could match) ?

Show
Florent Lioult added a comment - 08/Jul/03 2:53 AM How the negation will be handled ? An easy solution is to forbid negation condition as first condition or, at least, to have non negational condition in the rule. Otherwise when a rule with only negation condition will occur ? At the very begining of the working memory or after the first fact is asserted (provided the rule could match) ?
Hide
Permalink
Mark Proctor added a comment - 23/Jul/04 9:06 PM

<bob> 47 means, firing a rule when there's, let's say, 15 people who have the same birthday as you
<bob> or more importantly, when there's 0 people with the same bday
<conan> ok your talking about a "count" method to see how many times a rule is matches - for 47?
<bob> 47 is more about existential rules
<bob> post 2.0
<bob> so you can write rules like:
<bob> if:
<bob> a package does not relate to any truck
<bob> then:
<bob> ...
<bob> without having to do package.getTruck() == null
<bob> post 2.0, can't think about it right now
<conan> ok I have been talking about that. I want to be able to specify a condition an get a count on it then have it return true if the count == my given amount.
<conan> that the same thing?
<bob> more like
<bob> rule(Person p)
<conan> great need that for GAs
<bob> if:
<bob> p.getName().equals( "bob" );
<bob> then:
<bob> thisRule.incr();
<bob> and being able to test the # of times that rule has matched
<bob> and use it in other rules
<bob> ie,
<bob> <condition>peopleNamedBobRule.matches == 3</condition>
<bob> so we can tell there are 3 people named bob in the memory
<bob> w/o having to have 3 extra Person param and 3 conditions testing for bobness
<bob> or something
<bob> post 2.0

Show
Mark Proctor added a comment - 23/Jul/04 9:06 PM <bob> 47 means, firing a rule when there's, let's say, 15 people who have the same birthday as you <bob> or more importantly, when there's 0 people with the same bday <conan> ok your talking about a "count" method to see how many times a rule is matches - for 47? <bob> 47 is more about existential rules <bob> post 2.0 <bob> so you can write rules like: <bob> if: <bob> a package does not relate to any truck <bob> then: <bob> ... <bob> without having to do package.getTruck() == null <bob> post 2.0, can't think about it right now <conan> ok I have been talking about that. I want to be able to specify a condition an get a count on it then have it return true if the count == my given amount. <conan> that the same thing? <bob> more like <bob> rule(Person p) <conan> great need that for GAs <bob> if: <bob> p.getName().equals( "bob" ); <bob> then: <bob> thisRule.incr(); <bob> and being able to test the # of times that rule has matched <bob> and use it in other rules <bob> ie, <bob> <condition>peopleNamedBobRule.matches == 3</condition> <bob> so we can tell there are 3 people named bob in the memory <bob> w/o having to have 3 extra Person param and 3 conditions testing for bobness <bob> or something <bob> post 2.0

People

  • Assignee:
    bob mcwhirter
    Reporter:
    bob mcwhirter
Vote (4)
Watch (2)

Dates

  • Created:
    07/Jul/03 11:27 PM
    Updated:
    13/Feb/05 6:43 PM

Time Tracking

Estimated:
5d
Original Estimate - 5 days
Remaining:
5d
Remaining Estimate - 5 days
Logged:
Not Specified
Time Spent - Not Specified
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.