| Package | Description |
|---|---|
| com.agenarisk.api.model |
| 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.
|
DataSet |
Model.createDataSet(String id)
Creates a new DataSet and adds it to this Model.
|
protected static void |
CalculationResult.loadCalculationResult(DataSet dataSet,
org.json.JSONObject jsonResult)
Loads CalculationResult data from JSON into the underlying logic structure.
|
void |
DataSet.loadCalculationResult(org.json.JSONObject jsonResult)
Loads calculation result data for this DataSet from a given JSON and creates corresponding objects in the underlying logic.
|
void |
DataSet.setId(String id)
Changes the ID of this Network to the provided ID, if the new ID is not already taken.
|
void |
DataSet.setObservation(org.json.JSONObject jsonObservation)
Sets observations according to the given JSON.
|
void |
DataSet.setObservation(Node node,
Object value)
Sets a hard observation for a Node.
|
protected void |
DataSet.setObservationConstant(Node node,
String constantName,
double value)
Sets a node constant observation for a Node.
|
void |
DataSet.setObservationHard(Node node,
double value)
Sets a hard real observation for a Node.
|
void |
DataSet.setObservationHard(Node node,
int value)
Sets a hard integer observation for a Node.
|
void |
DataSet.setObservationHard(Node node,
String state)
Sets a hard observation for a Node.
|
void |
DataSet.setObservationSoft(Node node,
Map<String,Double> weights)
Sets a soft observation for the node, assigning a given weights to given states.
|
void |
DataSet.setObservationSoft(Node node,
String[] states,
Double[] weights)
Sets a soft observation for the node, assigning a given weights to given states.
|
void |
DataSet.setVariableObservation(Node node,
String variableName,
double value)
Sets a value for the provided variable in the provided Node in this DataSet to override its default value
|
Copyright © 2020. All rights reserved.