SimulationVuer
SimulationVuer
Props
Name | Description | Type | Required | Default |
---|---|---|---|---|
apiLocation | The the URL to the API location. | string | true | - |
id | The ID of the simulation-based dataset, if it is a number, or the path to a PMR file, if it is a string. | — | true | - |
Methods
Method | Description | Parameters |
---|---|---|
plotMetadata | Generate the metadata associated with the plot which index is given. | index |
downloadPmrFile | Download the PMR file associated with the given url . | url |
manageFile | Manage the file associated with the given url and fileContents . | url fileContents |
runSimulation | Run a PMR-based COMBINE archive using libOpenCOR. | - |
buildSimulationUi | Build the simulation UI using simulationUiInfo , a JSON object that describes the contents of the simulation UI. | simulationUiInfo |
runOnOsparc | Run the simulation-based dataset directly on oSPARC. Not all simulation-based datasets can be run directly on oSPARC, but for those that can the simulation UI shows a Run on oSPARC button which, when clicked, calls this method. | - |
viewDataset | View the simulation-based dataset on the SPARC portal. The simulation UI has a View Dataset button which, when clicked, calls this method. | - |
viewWorkspace | View the simulation-based dataset on PMR. The simulation UI has a View Workspace button which, when clicked, calls this method. | - |
parametersData | Data needed to set a model's parameters. | - |
outputData | Data needed to specify the model output. | - |
retrieveRequest | Create the request that is going to be used by startSimulation to ask oSPARC to start the simulation. | - |
processSimulationResults | Process the simulation results retrieved by checkSimulation . The simulation results are post-processed, if needed, and then readied for use by PlotVuer . | results |
showHttpIssue | Show an HTTP issue using the given xmlhttp . | xmlhttp |
checkSimulation | Check the progress of the simulation using the given data , a JSON object that contains the simulation job ID, as well as the solver name and version. This method is first called by startSimulation and then every second by itself until the simulation is finished. | data |
startSimulation | Start the simulation associated with the simulation-based dataset. The simulation UI has a Run Simulation button which, when clicked, calls this method. | - |