Git Product home page Git Product logo

Comments (3)

moguxedar avatar moguxedar commented on September 20, 2024

Just to clarify my question.

In your README there is written:

PDDL4J is an open source library under LGPL license.

But in all the examples on your webpages and wiki (at least the ones that I've found), you use it as a "stand-alone solver".

Is it possible to use it in the following way?

// my code
// Select and initialize the planner
// Specify the "domain" and the "problem" to the planner
// Execute the planner and get the output
// my code

Thanks

from pddl4j.

pellierd avatar pellierd commented on September 20, 2024

To use PDDL4J as library just add the library to your classpath and add the option -javaagent to the JVM when you launch your program:

java -javaagent:pddl4j-version.jar .....

To call a planner directly in your code follow the example given on the wiki page.

The JVM option is used to get statistics on the memory used by the JVM during search. It is based on the instrument API proposed by java since SDK 1.5.

If you don't want to use the agent option, you have to write your own version of the planner by removing all the calls to the class fr.uga.pddl4j.util.MemoryAgent from the code of the planner you want to use. Have a look to the HSP planner for instance.

from pddl4j.

moguxedar avatar moguxedar commented on September 20, 2024

Thanks for your answer.

Actually I would like to integrate PDDL4J into another library and I don't want to "force" my users to use the option -javaagent (given that some of them cannot use it, for instance the users that want to use my library on Android)

I'll try your second suggestion, but it seems quite "complex" for my purposes (I was looking for a Java library that allows me to parse and execute PDDL programs because I don't want to do it by myself).

Thanks

from pddl4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.