[Gbbopen-list] agenda-shell activation/obviation/retrigger puzzle
Paul Werkowski
pw at snoopy.mv.com
Thu Mar 15 10:15:08 EDT 2007
With apologies if this is sent twice. Having email woes...
> The traditional "trick" in doing what you want is to use the KSA rating
> value to make the pending KSA non-executable by lowering the rating
> below the minimum-ksa-execution-rating. The default
> minimum-ksa-execution-rating is 1 (and by convention, is rarely
> changed), so setting a KSA's rating to zero will make the KSAs
> non-executable (but still pending) until the rating is raised later on.
> (This "trick" is one of the reasons the default minimum is 1--a nice
> convention where negative & 0 can mean non-executable. Note that you
> can "remember" the old rating my simply negating it (to block) and
> re-negating it later (to unblock).
>
> This approach does have the small cost of a pending-ksa queue insertion
> on each transition to/from blocked.
>
> -- Dan
Dan, this isn't working for me yet. Returning a low rating value from
the :precondition function causes that function to never be called again
so I can't later change the rating to a higher value. What is the
preferred way to change the rating of something in the pending-ksa queue?
Paul
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Gbbopen-list
mailing list