Prolog Research
All the topics that do not fall into tha classic Prolog topics, such as extensions, CLP, tools, and so on.
ISO
CLP
Prolog and OO
Prolog and UML
Prolog on JVM
Prolog and LOGO
WAM
Parallelism
Prolog Java Logtalk C++
From SWI-Prolog mailing list:
Hello,
I have had the same problem but from Java, and the solution I
found was to use logtalk to store each agent "database"
You can look at my logtalk/prolog/java source code to see how I
did it, I think it will be easily transposed to C++ :)
You can find it there :
https://dev.crazydwarves.org/ProjetM1TER/browser/trunk
Good luck :)
Victor
On Wed, Jan 09, 2008 at 11:17:31AM +0100, Christian Mol wrote:
> Hello,
>
> In my C++ program if have a class of which multiple instances are created.
> So let's call the class Agent, I then have something like:
> Agent* kees = new Agent("Kees");
> Agent* anton = new Agent("Anton");
> etc.
>
> I want each of these agents to have its own prolog engine (or database, I
> don't exactly got the difference), so that each agent has it's own data in
> prolog and I can query in only his data. Furthermore I want to kill one of
> the agents and it's prolog database without other agents being touched. Is
> this possible?
>
> Regards,
> Christian
>