Interacting with simulation through script

Energy2D Forum Forums Energy2D Questions Interacting with simulation through script

This topic contains 3 replies, has 2 voices, and was last updated by  Charles Xie 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #222

    Famattsson
    Participant

    Hello!

    I am working on a candidate thesis which includes me trying to build an AI that regulates temperature. I am thinking of using energy2D to help with this. In order for that to work i need for the AI to be able to directly communicate with the simulation, i’ve tried to find documentation on how to do this, but i haven’t found anything. Is there anyone here who can help?

    #223

    Charles Xie
    Keymaster

    I have been wanting to build a Python interface through Jython, but I haven’t got time…

    If you know Java, you can call the API directly, though. I can answer your questions about the API.

    #224

    Famattsson
    Participant

    Thank you, i do know Java well enough. Is there anywhere i can read more about how to interface with the API?

    #225

    Charles Xie
    Keymaster

    Just go to my Github to look at the source code:

    https://github.com/charxie/energy2d

    You can call any public method.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.