[RavenclawDev 230] Re: accessing history of concepts from ravenclaw
Svetlana Stenchikova
svetastenchikova at gmail.com
Tue Mar 20 19:00:13 EDT 2007
Dear ravenclaw developers,
could someone please help me to figure out how to use the past concepts.
I am trying to get a value for the history (C("the_event")[-1]), but
it is empty.
It looks like RESET_AGENT command also clears the concepts. My system
runs in a lookp (like the roomline) and RESET_AGENT is called at the
end of the loop.
Is this an intended functionality to erase all past values?
This means that in the next iteration of the dialog (my system is
iterative) you can not get to the past values)
If I comment out in CDialogAgent::Reset():
/*for(unsigned int i = 0; i < Concepts.size(); i++)
Concepts[i]->Clear();*/
this fixes my problem, but I am not sure if it will introduce other problems.
Please advise on the best solution,
thank you
Svetlana
On 2/6/07, Svetlana Stenchikova <svetastenchikova at gmail.com> wrote:
> Hi, I have a question about accessing history of a concept.
>
> Is this the right syntax to copy an old concept into a temporary value of
> the same type:
> EXECUTE(C("LOCAL_the_old_event") = C("the_event")[-1])
>
> It appears to be empty after this command, although "the_event" has had a
> value before.
>
> Could you please suggest what may be a problem? Do I have to do anything
> explicitly to keep the history of concepts?
>
> thanks
> Svetlana
>
>
More information about the Ravenclaw-developers
mailing list