public class NodeConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeConfiguration.Field
This is set of fields for input/output to XML and JSON format
|
static class |
NodeConfiguration.Table
This is set of fields for input/output to XML and JSON format
|
static class |
NodeConfiguration.TableType
This is set of fields for input/output to XML and JSON format
|
static class |
NodeConfiguration.Variables
This is set of fields for input/output to XML and JSON format
|
| Constructor and Description |
|---|
NodeConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected static double[][] |
extractNPTColumns(org.json.JSONArray jsonNPT)
NPT in JSON is given by rows, while ExtendedNode expects an array of columns, so we will need to invert it.
|
static String |
resolveNodeClassName(Node.Type type)
Gets fully-qualified name for ExtendedNode concrete implementation matching the provided Node type from Note.Type.
|
static Node.Type |
resolveNodeType(uk.co.agena.minerva.model.extendedbn.ExtendedNode en)
Resolves the Node Type based on the logical node.
|
protected static void |
setDefaultIntervalStates(Node node)
Replaces Node states with 3 default interval states.
|
static double[][] |
transposeMatrix(double[][] matrix)
Transposes the provided 2D matrix.
|
public static double[][] transposeMatrix(double[][] matrix)
matrix - the matrix to transposepublic static Node.Type resolveNodeType(uk.co.agena.minerva.model.extendedbn.ExtendedNode en)
en - logical node to resolve Type frompublic static String resolveNodeClassName(Node.Type type)
type - Node typeprotected static double[][] extractNPTColumns(org.json.JSONArray jsonNPT)
throws org.json.JSONException
jsonNPT - JSON NPT to extract fromorg.json.JSONException - upon failureprotected static void setDefaultIntervalStates(Node node)
node - node for which to set statesCopyright © 2022. All rights reserved.