Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend API layer #9

Open
adrpo opened this issue Feb 17, 2023 · 0 comments
Open

Frontend API layer #9

adrpo opened this issue Feb 17, 2023 · 0 comments
Assignees

Comments

@adrpo
Copy link
Member

adrpo commented Feb 17, 2023

Sketch of needed high level API commands for integrating the frontend in a usual Modelica workflow.

Loading and parsing - model management

  • load a model or library from a directory
  • load a model or library from a zip file
  • load a model or library from a git repository
  • load a model or library from an URL

Diagramming support

  • toIcon(Path.To.Model) -> G6 JSON
  • toDiagram(Path.To.Model) -> G6 JSON
  • toDialog(Path.To.Model) -> JSON Forms
  • modificationListener(diagram, forms) -> OMFrontend.js AST changes

Simulation support

  • simulate(Path.To.Model, LibraryDependencyList (from uses annotation)) -> JSON
@adrpo adrpo self-assigned this Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant