| Package | Description |
|---|---|
| com.agenarisk.api.model | |
| com.agenarisk.api.tools |
| Modifier and Type | Method and Description |
|---|---|
static Model |
Model.createModel()
Factory method to create an empty instance of a Model class.
|
static Model |
Model.createModel(org.json.JSONObject json)
Factory method to create an instance of a Model from provided JSONObject.
|
static Model |
Model.createModel(uk.co.agena.minerva.model.Model api1Model)
Creates a Model from a Minerva Model object.
|
Model |
DataSet.getModel()
Returns the Model that this DataSet belongs to.
|
Model |
Network.getModel()
Returns the Model that this Network belongs to.
|
static Model |
Model.loadModel(String path)
Loads a Model from provided path
|
| Modifier and Type | Method and Description |
|---|---|
protected static DataSet |
DataSet.createDataSet(Model model,
org.json.JSONObject jsonDataSet)
Creates a DataSet for the Model from JSON data.
|
protected static DataSet |
DataSet.createDataSet(Model model,
String id)
Factory method to create a DataSet and add it to the given Model.
|
protected static Network |
Network.createNetwork(Model model,
org.json.JSONObject jsonNetwork)
Factory method to be called by a Model object that is trying to add a Network to itself.
|
protected static Network |
Network.createNetwork(Model model,
org.json.JSONObject jsonNetwork,
boolean withTables)
Factory method to be called by a Model object that is trying to add a Network to itself.
|
protected static Network |
Network.createNetwork(Model model,
String id,
String name)
Factory method to be called by a Model object that is trying to add a Network to itself.
|
static void |
Node.linkNodes(Model model,
org.json.JSONArray jsonLinks)
Creates links from the given JSON.
|
static void |
Settings.loadSettings(Model model,
org.json.JSONObject jsonSettings)
Utility method to load settings from the provided JSON to the provided Model.
For any missing fields, current model settings (or defaults) will be used. |
| Constructor and Description |
|---|
Settings(Model model) |
| Constructor and Description |
|---|
SensitivityAnalyser(Model model,
org.json.JSONObject jsonConfig)
Constructor for Sensitivity Analysis tool.
The Model will be factorised and converted to static taking into account any overriding model settings and observations pre-entered into the selected DataSet. If no DataSet or Network are specified, the first one of each will be used. |
Copyright © 2021. All rights reserved.