ld4mbse / oslc-adapter-amesim

6 stars 1 forks source link

question #2

Open 1501565734 opened 2 years ago

1501565734 commented 2 years ago
  1. How to use this project to call amesim to compile the simulation AME file without opening the amesim software
axelreichwein commented 2 years ago

The OSLC AMESIm adapter will invoke a python-based script which will use the AMESim Python SDK to read the content of AMESim files. If I remember well, the OSLC AMESIm adapter does not execute/simulate the AMESim models.

Code that invokes Python script at https://github.com/ld4mbse/oslc-adapter-amesim/blob/master/edu.gatech.mbsec.adapter.amesim/src/main/java/edu/gatech/mbse/oslc4jamesim/application/AMESim2XMIThread.java#L44

Python code which uses AMESim Python SDK to parse AMESim files at https://github.com/ld4mbse/oslc-adapter-amesim/blob/master/edu.gatech.mbsec.adapter.amesim/python/importAMESIM.py

Does this answer your question?