Re: JESS: Re: how to make a rule

2007-11-17 Thread Wolfgang Laun
Here is another proposal. You'll find that this extends the system dynamically, depending on new asset categories and, also, depending on the kind of queries that are put to the system. (I'm assuming that combinations of assets have to be queried, too.) To reduce the number of resulting deftemplate

Re: JESS: Re: how to make a rule

2007-11-16 Thread Ernest Friedman-Hill
On Nov 16, 2007, at 11:46 AM, Mohd. Noor wrote: Thanks >Jess lets you define new rules, and remove old ones, while a system >is running, and facts (like the "property" facts) can come and go all >the time, as well. How about the template - can we redefine the template as well as update the

Re: JESS: Re: how to make a rule

2007-11-16 Thread Mohd. Noor
Thanks >Jess lets you define new rules, and remove old ones, while a system >is running, and facts (like the "property" facts) can come and go all >the time, as well. How about the template - can we redefine the template as well as update the existing one? Do we need install jess-engine in each b

Re: JESS: Re: how to make a rule

2007-11-16 Thread Hal Hildebrand
On Nov 16, 2007, at 7:40 AM, Ernest Friedman-Hill wrote: Hi, I'm not sure how this conversation drifted into a discussion of *alternatives* to Jess; I don't see any problem with doing this application in Jess itself. Sorry, that was my fault... Apologies ;) If you need to have prope

Re: JESS: Re: how to make a rule

2007-11-16 Thread Ernest Friedman-Hill
Hi, I'm not sure how this conversation drifted into a discussion of *alternatives* to Jess; I don't see any problem with doing this application in Jess itself. If you need to have properties like "service" come and go in a running system, then the way to do that is the same way you'd do i

Re: JESS: Re: how to make a rule

2007-11-16 Thread Mohd. Noor
let me extend my example say > Computer A: >CPu =100 >RAM = 1GB >s/w = c++ > Computer B: > CPU =20 > RAM = 512M > S/w =spps > Computer C > CPU =12 > RAM = 2GB > s/w = mathlab >>> service = bioInf

Re: JESS: Re: how to make a rule

2007-11-15 Thread Hal Hildebrand
The rules are compiled into classes, so yes, they are hard coded in that sense. But you can compile on the fly and create new systems of rules. However, the question comes down to what are the constraints you are trying to solve? Is it true that the constraints are changing and therefor

Re: JESS: Re: how to make a rule

2007-11-15 Thread Mohd. Noor
Yes, - I noticed that we have to consider the state of resource at certain point of time. I go through the examples of JCHR, it look like that we have to hardcoded the rules. Am I right/wrong?. Cheers On Nov 15, 2007 7:35 PM, Hal Hildebrand <[EMAIL PROTECTED]> wrote: > There's a life cycle in

Re: JESS: Re: how to make a rule

2007-11-15 Thread Hal Hildebrand
There's a life cycle involved, so you're never going to get a system with continuously varying state (nor would you really want to), thus it has to be sampled discretely. The result is a system which triggers when the sampled values change. Some values, like hardware configuration, will c

Re: JESS: Re: how to make a rule

2007-11-15 Thread Motaz K. Saad
I think you can make such thing with deftemplate by defining multislot and using wild card for pattern matching On Nov 15, 2007 8:38 PM, Mohd. Noor <[EMAIL PROTECTED]> wrote: > Dear All > > Thanks for the kind replies > What I am concerned is, my rules is always dynamically changes over time( > e

Re: JESS: Re: how to make a rule

2007-11-15 Thread Mohd. Noor
Dear All Thanks for the kind replies What I am concerned is, my rules is always dynamically changes over time(e.g. CPU availability/utilisation) -with that, I cannot hard coded on the programming coding. Even their template/"deftemplate" might be changes(e.g. new software properties/a totally new

Re: JESS: Re: how to make a rule

2007-11-15 Thread Hal Hildebrand
What you are describing is constraint programming. You can do this with Jess, but it's not exactly the best (imho) tool for the job due to what is involved. The combinatorics are nasty in all but the simplest examples. For a constraint solver that runs (with minor tweaks) in Jess, see ht

Re: JESS: Re: how to make a rule

2007-11-15 Thread Ernest Friedman-Hill
On Nov 15, 2007, at 6:48 AM, Mohd. Noor wrote: dear jess how to make a rule from this scenario Computer A: CPu =100 RAM = 1GB s/w = c++ Computer B: CPU =20 RAM = 512M S/w =spps Computer C CPU =12 RAM = 2GB

Re: JESS: Re: how to make a rule

2007-11-15 Thread Mohd. Noor
let say the user want to select the computer (resources) in which suite their requirement- in this case user wants to run mathlab simulation in computer(clusters) that have more than 20 CPUs available. Let consider the attributes such as CPU and software are treated differently(whereby we can migra

Re: JESS: Re: how to make a rule

2007-11-15 Thread Motaz K. Saad
Could you explain more!. Do you want to make a rule to determine computer specifications for a given software.? On Nov 15, 2007 1:48 PM, Mohd. Noor <[EMAIL PROTECTED]> wrote: > dear jess > how to make a rule from this scenario > > Computer A: >CPu =100 >RAM = 1GB >

JESS: Re: how to make a rule

2007-11-15 Thread Mohd. Noor
dear jess how to make a rule from this scenario Computer A: CPu =100 RAM = 1GB s/w = c++ Computer B: CPU =20 RAM = 512M S/w =spps Computer C CPU =12 RAM = 2GB s/w = mathlab The user will request to run a