| Package | Description |
|---|---|
| com.agenarisk.api.model |
| Modifier and Type | Method and Description |
|---|---|
Node |
Network.createNode(org.json.JSONObject jsonNode)
Creates a Node from its JSONObject specification and adds it to this Network.
|
Node |
Network.createNode(org.json.JSONObject jsonNode,
boolean withTables)
Creates a Node from its JSONObject specification and adds it to this Network.
|
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.
|
protected static Node |
Node.createNode(Network network,
String id,
String name,
Node.Type type)
Factory method to be called by a Network object that is trying to add a Node to itself.
|
Node |
Network.createNode(String id,
Node.Type type)
Creates a Node and adds it to this Network.
|
Node |
Network.createNode(String id,
String name,
Node.Type type)
Creates a Node and adds it to this Network.
|
Node |
Link.getFromNode()
Returns the source Link Node.
|
Node |
CalculationResult.getNode()
Returns the CalculationResult's Node.
|
Node |
Observation.getNode()
Returns the observed Node.
|
Node |
State.getNode()
Gets the state's Node.
|
Node |
Network.getNode(String id)
Gets Node from the Network by its unique ID.
|
Node |
Link.getToNode()
Returns the target Link Node.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Node> |
Node.getAncestors()
Builds and returns a set of ancestors for this Node.
Does not include itself. Does not follow cross-network links (only includes Nodes in the same Network). |
Map<Node,CalculationResult> |
DataSet.getCalculationResults(Network network)
Maps nodes to calculation results in the given network in this data set.
|
Set<Node> |
Node.getChildren()
Builds and returns a set of Node's children, which is valid at the time of request.
|
Set<Node> |
Node.getDescendants()
Builds and returns a set of descendants for this Node.
Does not include itself. Does not follow cross-network links (only includes Nodes in the same Network). |
List<Node> |
Network.getNodeList()
Returns Nodes of this Network as a list
|
Map<String,Node> |
Network.getNodes()
Returns a copy of ID-Node map.
|
Set<Node> |
Node.getParents()
Builds and returns a set of Node's parents, which is valid at the time of request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DataSet.clearObservation(Node node)
Clears an observation from a Node if it exists.
|
void |
DataSet.clearVariableObservation(Node node,
String variableName)
Clears the VariableObservation of the provided name in this DataSet for the provided Node.
|
void |
DataSet.clearVariableObservations(Node node)
Clears all VariableObservations from this DataSet for the provided Node.
|
int |
Node.compareTo(Node o)
Compares this Node object to another based on the Id of this object.
|
protected static CrossNetworkLink |
CrossNetworkLink.createCrossNetworkLink(Node fromNode,
Node toNode,
CrossNetworkLink.Type type,
String stateToPass)
Factory method to create a CrossNetworkLink instance.
|
protected static Link |
Link.createLink(Node fromNode,
Node toNode)
Creates a Link object without manipulating the nodes themselves.
|
Link |
Model.createLink(Node source,
Node target,
CrossNetworkLink.Type type)
Creates a Link between two nodes in same or different Networks.
|
Link |
Model.createLink(Node source,
Node target,
State state)
Creates a CrossNetworkLink of type CrossNetworkLink.Type.State that passes the given state from source Node to target Node.
|
protected static State |
State.createState(Node node,
String label)
Creates a State instance for the given Node with the given Label.
|
protected static CalculationResult |
CalculationResult.getCalculationResult(DataSet dataset,
Node node)
Gets a CalculationResult that reflects the status of the underlying logic structure at resolution time.
|
CalculationResult |
DataSet.getCalculationResult(Node node)
Returns the CalculationResult for the given Node.
|
Observation |
DataSet.getObservation(Node node)
Returns a view of the observation for the given node if there is one.
|
Set<Observation> |
DataSet.getObservationsAndVariables(Node node)
Returns all Observations and VariableObservations in this DataSet for the provided Node.
|
protected static State |
State.getState(Node node,
String label)
Find a state by given label in the given Node's underlying logic node.
|
VariableObservation |
DataSet.getVariableObservation(Node node,
String variableName)
Returns a view of the VariableObservation for the provided Node and variable name if there is one.
|
Set<VariableObservation> |
DataSet.getVariableObservations(Node node)
Returns a view of VariableObservations for the provided Node.
|
boolean |
DataSet.hasObservation(Node node)
Checks whether the Node has an observation set.
|
boolean |
DataSet.hasVariableObservation(Node node,
String variableName)
Checks whether the provided variable in the provided node is observed in this DataSet.
|
Link |
Node.linkFrom(Node parent)
Creates a simple Link from the given Node to this Node in the same Network.
|
static Link |
Node.linkNodes(Node fromNode,
Node toNode)
Creates a simple Link between two nodes in the same Network.
|
static Link |
Node.linkNodes(Node fromNode,
Node toNode,
CrossNetworkLink.Type type)
Creates a Link between two nodes in same or different Networks.
|
static Link |
Node.linkNodes(Node fromNode,
Node toNode,
CrossNetworkLink.Type type,
String stateToPass)
Creates a Link between two nodes in same or different Networks.
|
Link |
Node.linkTo(Node child)
Creates a simple Link from this Node to given Node in the same Network.
|
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.
|
protected static void |
NodeConfiguration.setDefaultIntervalStates(Node node)
Replaces Node states with 3 default interval states.
|
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
|
boolean |
Node.unlink(Node linkedNode)
Removes a link between this Node and the linkedNode, if such link exists.
|
static boolean |
Node.unlinkNodes(Node node1,
Node node2)
Checks that there is a Link between two nodes and destroys it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Node.partitionByParents(List<Node> partitionParents)
Sets node partitions based on the parent states.
|
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.
|
| Constructor and Description |
|---|
Link(Node fromNode,
Node toNode)
Deprecated.
For internal use only. Use createLink() instead
|
Observation(uk.co.agena.minerva.model.scenario.Observation logicObservation,
DataSet dataSet,
Node node)
Constructor for the observation.
|
Variable(Node node,
uk.co.agena.minerva.util.model.Variable logicVariable)
Creates an instance of Variable for the provided Node, linked to the provided logic Variable.
|
VariableObservation(uk.co.agena.minerva.model.scenario.Observation logicObservation,
DataSet dataSet,
Node node)
Constructor for VariableObservation.
|
Copyright © 2021. All rights reserved.