| Package | Description |
|---|---|
| com.agenarisk.api.model |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Node.convertToSimulated()
Enables calculation simulation for the Node (only possible for ContinuousInterval or IntegerInterval nodes).
|
void |
Model.convertToStatic(DataSet dataSet)
Make all states of dynamically discretized nodes static as they currently are in the provided DataSet.
No action will be performed if no nodes are simulated. Any VariableObservations in the DataSet will replace current Node variable defaults and will be replaced from the DataSet observations. |
boolean |
Node.convertToStatic(DataSet dataSet)
Disables simulation and converts dynamic states from the results of the provided DataSet into static permanent states.
Any VariableObservations in the DataSet will replace current Node variable defaults and will be replaced from the DataSet observations. |
protected static Node |
Node.createNode(Network network,
org.json.JSONObject jsonNode)
Factory method to create a Node for use by the Network class.
|
protected static Node |
Node.createNode(Network network,
org.json.JSONObject jsonNode,
boolean withTables)
Factory method to create a Node for use by the Network class.
|
static org.json.JSONObject |
NodeTemplate.generateTableFromRows(Double[][] rows) |
static void |
Node.linkNodes(Model model,
org.json.JSONArray jsonLinks)
Creates links from the given JSON.
|
void |
Node.partitionByParents(List<Node> partitionParents)
Sets node partitions based on the parent states.
|
void |
Network.removeNode(Node node)
Removes the provided node from the model, severing its links to other Nodes and then removing it from its Network.
|
void |
Node.resetTable()
Attempts to reset node's table
|
void |
Node.setId(String newId)
Changes the ID of this Node to the provided ID, if the new ID is not already taken.
|
void |
Node.setStates(org.json.JSONArray jsonStates)
Replaces Node's states by the ones given in the JSON array.
|
void |
Node.setStates(List<String> states)
Replaces Node's states by the ones given in the array.
|
void |
Node.setStates(String[] states)
Replaces Node's states by the ones given in the array.
|
void |
Node.setTable(org.json.JSONObject jsonTable)
Replaces the Node's probability table with one specified in the given JSON.
|
void |
Node.setTableColumns(double[][] columns)
Sets the manual NPT according to columns provided.
|
void |
Node.setTableFunction(String expression)
Sets Node function to the one provided.
|
void |
Node.setTableFunction(String expression,
List<String> allowedTokens)
Sets Node function to the one provided.
|
protected void |
Node.setTableFunction(String expression,
List<String> allowedTokens,
boolean relaxFunctionRequirements)
Sets Node function to the one provided.
|
void |
Node.setTableFunctions(List<String> expressions,
List<Node> partitionParents)
Sets Node expressions to the ones provided.
|
protected void |
Node.setTableFunctions(List<String> expressions,
List<String> allowedTokens,
boolean relaxFunctionRequirements,
List<Node> partitionParents)
Sets Node expressions to the ones provided.
|
void |
Node.setTableRows(double[][] rows)
Sets the manual NPT according to rows provided.
|
Copyright © 2021. All rights reserved.