SDP - Simulation Development Platform
Synopsis
Simulation Development Platform (SDP) using Codespaces or DevContainers to code, build, and run DSE Simulations.
Setup
GitHub Codespaces
GitHub Codespaces provides a cloud-hosted development environment which is pre-configured for the SDP. This environment includes SDP Extensions and can be immediately used to build and run simulations.
Steps to use Codespaces:
- Go to the repository on GitHub.
- Click the Code button and choose Open with Codespaces.
- If you don’t have an existing codespace, click New codespace to create one.
- After some moments your Codespace will be ready.
Dev Containers
VS Code Dev Containers can be configured to run the SDP within Visual Studio, and the SDP Extensions can also be installed. This approach requires a Docker environment (e.g. WSL2 or Docker Desktop).
Steps to use a Dev Container:
TODO: This section needs to be updated.
Configure the Dev Container.
Install the extension using VS Code GUI:
- Open the Extensions view by pressing
Ctrl+Shift+X
. - Click the
...
(More Actions) menu in the top-right corner of the Extensions panel. - Select
Install from VSIX...
. - Navigate to the
lsp/out/bin
folder and select the generateddse.vsix
file.
- Open the Extensions view by pressing
Native Linux
The SDP Builder and Report tool, as well as the Simer simulation run-time, are all containerized tools which can be configured and used in a Linux environment.
Usage
GitHub Workflows
TODO: This section needs to be updated.
VS Code Extension
VS Code DSE Commands
The following commands are available via the Command Palette (Ctrl+Shift+P
) when the SDP extension is installed:
Command | Description |
---|---|
Build (DSE: Build ) | Generates simulation.yaml and Taskfile.yml from the active .dse file. This prepares the simulation environment. |
Check (DSE: Check ) | Analyzes the simulation graph and produces a report to help visualize and verify the structure of the simulation. |
Run (DSE: Run ) | Executes the simulation using the currently configured simulation definition. |
Clean (DSE: Clean ) | Performs a clean operation using task: clean , removing generated artifacts and build files. |
Cleanall (DSE: Cleanall ) | Performs a deep clean via task: cleanall , removing all outputs and intermediate data. |
Live AST View
The extension supports live viewing of the models and channels derived from .dse
files
To view the AST preview
- Open a supported
.dse
file in the VS Code editor. - Click the
Open Preview
button in the upper-right corner of the editor window.
Alternatively, you can use keyboard shortcuts
- Press
Ctrl + K V
to open preview in a side panel. - Press
Ctrl + Shift + V
to open preview in the main panel.